*,
*::before,
*::after {
    border-radius: 5px !important;
}

body {
    font-family: 'Montserrat', system-ui, sans-serif;
    background: radial-gradient(circle at 15% -20%, rgba(181, 101, 255, 0.25) 0%, transparent 55%),
                radial-gradient(circle at 90% 0%, rgba(48, 93, 254, 0.25) 0%, transparent 55%),
                #050510;
    color: #f5f6ff;
    padding-top: 72px;
}

.bg-darker {
    background-color: #05060e !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff;
}

.custom-navbar {
    background: rgba(8, 10, 20, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
}

.custom-navbar .nav-link,
.custom-navbar .dropdown-toggle {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s ease;
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link:focus-visible,
.custom-navbar .dropdown-toggle:hover,
.custom-navbar .dropdown-toggle:focus-visible {
    color: #fff;
    background: transparent;
    outline: none;
    box-shadow: none;
}

.custom-navbar .navbar-brand img {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.custom-navbar .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.custom-navbar .btn-outline-light {
    border-radius: 5px;
}

.home-content {
    min-height: calc(100vh - 72px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3rem;
    padding: 3rem 1rem 5rem;
}

.prompts-main {
    min-height: calc(100vh - 72px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 3rem;
    padding: 3rem 1rem 5rem;
}

.search-section {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.search-wrapper {
    width: min(900px, 100%);
}

.hero-intro-section {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 0 1rem;
}

.hero-intro-title h1 {
    font-size: clamp(2rem, 4vw, 2.7rem);
    letter-spacing: 0.3rem;
    color: #fff;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.2;
}

.hero-intro-title strong {
    background: linear-gradient(90deg, #9336af, #c58bdc);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-intro-subtitle {
    color: #fff;
    font-size: 1rem;
    margin: 0;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
}

.hero-steps {
    width: 100%;
    max-width: 960px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hero-steps-label {
    margin: 0 auto;
    font-size: 0.85rem;
    letter-spacing: 0.4rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.hero-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.hero-step {
    background: rgba(15, 15, 35, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    justify-content: flex-start;
    min-height: 80px;
    box-shadow: 0 20px 35px rgba(5, 5, 20, 0.45);
}

.hero-step-number {
    width: 45px;
    height: 45px;
    min-width: 45px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg, #9336af, #c58bdc);
    font-size: 1rem;
}

.hero-step p {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
}

.hero-followup {
    margin: 0;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.25rem;
    font-size: 0.75rem;
}
.search-wrapper {
    width: min(900px, 100%);
}

.search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(10, 12, 25, 0.9);
    padding: 0.15rem;
    border-radius: 12px;
    box-shadow: 0 25px 40px rgba(5, 5, 20, 0.6);
    align-items: center;
}

.search-form input {
    border: none;
    background: transparent !important;
    color: #fff !important;
    padding: 1rem 1.25rem;
    font-size: 1.15rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.search-form input::placeholder {
    color: rgba(255, 255, 255, 0.65) !important;
    opacity: 1;
}

.search-form input:-ms-input-placeholder,
.search-form input::-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.65) !important;
}

.search-form input:focus {
    outline: none;
    box-shadow: none;
    background: transparent !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}

.search-form .btn {
    border-radius: 12px;
    padding: 0.85rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(5, 8, 20, 0.9);
}

@media (min-width: 992px) {
    .search-section {
        margin-bottom: 3.75rem;
    }
}
.prompts-section .search-section {
    justify-content: flex-start;
    margin-bottom: 0;
    padding: 0;
}
.prompts-section .search-wrapper {
    width: 100%;
    margin-bottom: 35px;
}
.prompts-section .search-form {
    width: 100%;
}
.prompts-section,
.prompts-main .prompts-section {
    width: 100%;
}

.guest-prompts-section .row {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.65rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    text-align: center;
}

.prompts-sidebar {
    background: rgba(5, 7, 16, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    padding: 1.5rem 1.25rem;
    box-shadow: 0 15px 35px rgba(5, 5, 20, 0.55);
    min-height: 400px;
}

.prompts-sidebar .list-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.prompts-sidebar .category-list-scroll {
    padding-right: 0.4rem;
}

.prompts-sidebar .list-group-item {
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 5px;
    background: transparent;
}

.prompts-sidebar .list-group-item.active {
    background: linear-gradient(180deg, #7f3ca5, #2b0b3d);
    border: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.prompts-sidebar .category-link {
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.18rem;
    font-size: 0.7rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    padding: 0.45rem 0.9rem;
}

.prompts-sidebar .list-group-item.active .category-link,
.prompts-sidebar .category-link:hover {
    color: #fff;
}

.category-edit-btn {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
}

.category-add-btn {
    font-size: 0.75rem;
    padding: 0.35rem 0.9rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.category-add-btn:hover {
    border-color: #fff;
}

.mobile-categories-card {
    background: rgba(5, 7, 16, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    box-shadow: 0 15px 35px rgba(5, 5, 20, 0.55);
}

.mobile-categories-card .card-body {
    padding: 1rem;
}

.mobile-categories-card .list-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.mobile-categories-card .list-group-item {
    border: none;
    padding: 0;
    background: transparent;
}

.mobile-categories-card .list-group-item .category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    width: 100%;
    padding: 0.5rem 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.18rem;
    font-size: 0.68rem;
    color: #b0d2ff;
    text-decoration: none;
}

.mobile-categories-card .list-group-item.active .category-link {
    background: linear-gradient(180deg, #a755ff, #5c35c8);
    border-radius: 10px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(92, 53, 200, 0.35);
}

.mobile-categories-card .category-link:hover {
    color: #fff;
}

.mobile-categories-card .category-edit-btn {
    border-radius: 8px;
    font-size: 0.65rem;
    padding: 0.35rem 0.7rem;
}

.mobile-categories-card .form-select {
    background: rgba(10, 12, 25, 0.95) !important;
    border-color: rgb(57 73 118) !important;
    color: #fff !important;
}

.mobile-categories-card .form-select option {
    background: #050510;
    color: #fff;
}

.mobile-categories-card .form-label {
    color: #fff;
}

.guest-prompts-section .search-section,
.guest-prompts-section .guest-prompts-grid {
    max-width: 1000px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.mobile-categories-card .form-select:focus {
    box-shadow: none;
    background: rgba(10, 12, 25, 0.95) !important;
}

@media (max-width: 991px) {
    .prompts-sidebar {
        min-height: auto;
        padding: 1.25rem;
    }
    .mobile-categories-card .category-list-scroll {
        max-height: none;
        overflow: visible;
        padding-right: 0.4rem;
    }
    .mobile-categories-dropdown .form-select {
        background: rgba(10, 12, 25, 0.95);
        color: #fff;
        border-color: rgba(255, 255, 255, 0.2);
        border-radius: 5px;
        padding: 0.45rem 0.9rem;
    }
    .mobile-categories-dropdown .form-select:focus {
        box-shadow: none;
        border-color: #b468df;
    }
}

.prompt-card {
    position: relative;
    border-radius: 5px;
    background: rgba(5, 7, 16, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 45px rgba(5, 5, 20, 0.7);
}

.prompt-card-image,
.image-trigger,
.prompt-card-image.placeholder {
    position: relative;
}

.prompt-card-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    background: rgba(10, 12, 25, 0.95);
    display: block;
}

.prompt-card-image.placeholder {
    min-height: 200px;
}

.image-trigger {
    display: block;
    border: none;
    margin: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.image-trigger img {
    display: block;
    width: 100%;
    height: auto;
}

.prompt-card-body {
    padding: 6px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.prompt-card h3 {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05rem;
    margin: 0;
}

.prompt-category {
    font-size: 0.7rem;
    letter-spacing: 0.3rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.prompt-actions {
    margin-top: auto;
    display: flex;
    gap: 0.25rem;
    align-items: center;
    flex-wrap: nowrap;
}

.prompt-main-actions {
    display: flex;
    gap: 0.25rem;
    flex: 1;
}

.prompt-main-actions .btn {
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.72rem;
    padding: 0.4rem 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    transition: background 0.2s ease, border-color 0.2s ease;
    flex: 1;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.prompt-main-actions .btn:hover,
.prompt-main-actions .btn:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.45);
}

.prompt-card-tag {
    position: absolute;
    bottom: 0.35rem;
    right: 0.35rem;
    font-size: 0.55rem;
    letter-spacing: 0.22rem;
    text-transform: uppercase;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-weight: 400;
    color: #fff;
    background: rgba(40, 40, 40, 0.75);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
    z-index: 2;
    pointer-events: none;
}

.prompt-card-tag--pro {
    background: rgba(13, 110, 253, 0.85);
}

.prompt-card-tag--free {
    background: rgba(25, 135, 84, 0.85);
}

.btn-prompt,
.btn-tip {
    background: rgba(255, 255, 255, 0.07);
}

.favorite-form {
    margin: 0;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.btn-favorite {
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    font-size: 1rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-favorite:hover,
.btn-favorite:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.45);
}

.btn-favorite.favorited {
    background: #facc15;
    border-color: #facc15;
    color: #111;
}

.btn-favorite.favorited i {
    color: #111;
}

.prompt-text {
    width: 100%;
    min-height: 44px;
    max-height: 70px;
    resize: none;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.62rem;
    padding: 0.35rem 0.75rem;
    font-family: 'Montserrat', system-ui, sans-serif;
    letter-spacing: 0.04rem;
    line-height: 1.3;
}

.prompt-text:focus {
    outline: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.04);
}

.edit-prompt-link {
    font-size: 0.75rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
}

.modal-card {
    background: rgba(8, 10, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 5px;
}

.modal-card .modal-header .btn-close {
    filter: invert(1);
}

.modal-card .modal-body {
    color: rgba(255, 255, 255, 0.85);
}

.card {
    background: rgba(5, 7, 16, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding-left: 0;
    margin-bottom: 0;
}

.pagination .page-link {
    color: #fff;
    background: #9336af;
    border-radius: 12px;
    min-width: 42px;
    padding: 0;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    font-weight: 600;
    transition: transform 0.2s ease, filter 0.2s ease;
    box-shadow: 0 15px 30px rgba(147, 54, 175, 0.35);
}

.pagination .page-item.active .page-link {
    background: #9336af;
    box-shadow: 0 15px 30px rgba(147, 54, 175, 0.45);
}

.pagination .page-link:hover:not(.disabled) {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.pagination .page-item.disabled .page-link {
    background: rgba(147, 54, 175, 0.5);
    cursor: not-allowed;
    box-shadow: none;
}
.form-control,
.form-select,
.form-check-input {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #fff !important;
    border: 1px solid rgb(57 73 118) !important;
}

.form-select option {
    background: #050510;
    color: #fff;
}

.prompt-image-form .form-select {
    background: rgba(5, 7, 16, 0.95) !important;
    border-color: rgb(57 73 118) !important;
    color: #fff !important;
}

.prompt-image-form .form-select option {
    background: #050510;
    color: #fff;
}

.category-checkbox-list {
    gap: 0.5rem;
}

.category-checkbox-wrapper {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 5px;
    padding: 0.65rem;
    background: rgba(10, 12, 25, 0.8);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-checkbox {
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.02);
}

.category-checkbox input {
    width: 16px;
    height: 16px;
    margin: 0;
}

.category-checkbox-list .form-check-input {
    accent-color: #8c3d91;
}

.category-checkbox span {
    font-size: 0.85rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
}

.prompt-image-form .form-check-input {
    border: 1px solid rgb(57, 73, 118);
    background-color: transparent;
    border-radius: 6px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    box-sizing: border-box;
}

.prompt-image-form .form-check-input::after {
    content: '✔';
    position: absolute;
    font-size: 0.9rem;
    color: #fff;
    opacity: 0;
    transform: scale(0.8);
    transition: transform 0.15s ease, opacity 0.15s ease;
    line-height: 1;
}

.prompt-image-form .form-check-input:checked {
    background-color: #8c3d91 !important;
    border-color: #8c3d91 !important;
}

.prompt-image-form .form-check-input:checked::after {
    opacity: 1;
    transform: scale(1);
}

.prompt-image-form .form-check-input:focus {
    box-shadow: none;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #fff !important;
    box-shadow: none !important;
}

.admin-plan-select {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgb(57 73 118) !important;
    color: #fff !important;
}

.admin-plan-select option {
    background: #050510;
    color: #fff;
}

.admin-prompt-actions a,
.admin-prompt-actions button {
    font-size: 0.95rem;
    text-transform: capitalize;
    text-decoration: none !important;
    padding: 0;
    letter-spacing: 0.02em;
}

.btn {
    border-radius: 5px;
}

.btn-login-gradient {
    border: none;
    background: linear-gradient(90deg, #8c3d91, #561076);
    color: #fff;
    font-weight: 600;
}

.btn-login-gradient:hover {
    filter: brightness(1.05);
}

.text-secondary {
    color: #fff !important;
}

.text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.alert {
    background: rgba(8, 10, 20, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.home-content .container,
.prompts-main .container {
    width: 100%;
}

.toast.show {
    background: rgba(8, 10, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
}

@media (max-width: 768px) {
    .home-content,
    .prompts-main {
        padding-top: 4rem;
    }

    .prompts-main {
        padding-top: 1.5rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .search-section {
        margin-bottom: 2.5rem;
    }

    .prompt-card {
        margin-bottom: 0.5rem;
    }

    .hero-intro-title h1 {
        font-size: 2.15rem;
        margin-bottom: 0.85rem;
    }

    .hero-intro-subtitle {
        margin-top: 0.85rem;
    }
}
