* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0e0e0e;
    color: #e6e6e6;
    font-family: 'Manrope', sans-serif;
    overflow-x: hidden;
}

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0e0e0e, #161616);
    z-index: -1;
    animation: gradientShift 25s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

.form-container {
    position: relative;
    background: #1c1c1c;
    border-radius: 15px;
    padding: 1.5rem;
    max-width: 400px; /* Smaller for modal */
    width: 90%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    
    /* Make it a small square */
    width: 30px;
    height: 30px;
    padding: 0;

    /* Visual styling */
    background-color: #333;
    color: #fff;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    
    /* Remove inherited full width if any */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Override unwanted inherited styles */
    box-shadow: none;
    background-image: none;
    background: #333;
    width: 30px !important;
}

.close-modal:hover {
    background-color: #555;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #1c1c1c;
    border-bottom: 1px solid rgba(255, 0, 127, 0.15);
    flex-wrap: wrap; /* Allow navbar items to wrap on small screens */
}

.logo {
    font-size: 24px; /* Reduced for mobile */
    font-weight: 800;
    color: #ff007f;
    letter-spacing: -0.8px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between buttons */
    flex-wrap: wrap; /* Allow buttons to wrap */
}

.login-btn {
    display: inline-block; /* Ensures both <a> and <button> behave the same */
    text-align: center;
    padding: 10px 20px;
    background: linear-gradient(45deg, #ff007f, #ff4da6);
    border: none;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 900;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    white-space: nowrap;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    cursor: pointer;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 127, 0.4);
}

.search-container {
    padding: 16px 24px;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
}

.search-bar {
    width: 100%;
    max-width: 450px;
    padding: 12px 16px 12px 40px; /* Adjusted padding for icon */
    border: none;
    border-bottom: 2px solid rgba(255, 0, 127, 0.3);
    background: transparent;
    color: #e6e6e6;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-bar:focus {
    border-color: #ff007f;
    box-shadow: 0 2px 8px rgba(255, 0, 127, 0.3);
}

.search-icon {
    position: absolute;
    left: 32px; /* Adjusted for mobile */
    top: 50%;
    transform: translateY(-50%); /* Center vertically */
    color: #ff007f;
    font-size: 16px; /* Slightly smaller */
    pointer-events: none;
}
.image-wrapper {
    position: relative;
}

.hot-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(45deg, #ff0000, #ff4d4d);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

@media (max-width: 768px) {
    .hot-badge {
        font-size: 10px;
        padding: 3px 6px;
    }
}
.creator-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Exactly 4 columns */
    gap: 1.5rem;
    padding: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.creator-card {
    background: #1c1c1c;
    
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 0, 127, 0.08);
    
}

.creator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(255, 0, 127, 0.4);
}

.creator-card img {
    width: 100%;
    height: 390px; /* Increased for desktop */
    object-fit: cover;
    border-radius: 12px; /* Added for rounded corners, matches card */
}

.creator-card h2 {
    font-size: 1.5rem;
    margin: 1.2rem;
    color: #e6e6e6;
    font-weight: 700;
}

.creator-card p {
    margin: 0 0.8rem 0.8rem;
    color: #ccc;
}

.btn {
    display: block;
    margin: 0.8rem;
    padding: 0.7rem;
    background: linear-gradient(45deg, #ff007f, #ff4da6);
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    background: linear-gradient(45deg, #e60073, #ff3399);
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.4);
}

.tabs {
    display: flex;
    padding: 16px 24px;
    max-width: 1280px;
    margin: 0 auto;
    flex-wrap: wrap; /* Allow tabs to wrap */
    gap: 10px; /* Space between tabs */
}

.tab {
    padding: 10px 20px;
    background: #1c1c1c;
    color: #ff007f;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.tab:hover {
    background: #ff007f;
    color: #fff;
}

.tab.active {
    background: linear-gradient(45deg, #ff007f, #ff4da6);
    color: #fff;
}

.form-container {
    max-width: 500px; /* Slightly smaller for mobile */
    margin: 1.5rem auto;
    padding: 1.5rem;
    background: #1c1c1c;
    border-radius: 15px;
    text-align: center;
}

.form-container h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ff007f;
}

.form-container input,
.form-container select {
    width: 100%;
    padding: 10px 14px;
    margin: 8px 0;
    background: #2a2a2a;
    border: 1px solid rgba(255, 0, 127, 0.3);
    color: #e6e6e6;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Manrope', sans-serif;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-container input:focus,
.form-container select:focus {
    outline: none;
    border-color: #ff007f;
    box-shadow: 0 0 8px rgba(255, 0, 127, 0.3);
}

.form-container select {
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23ff007f" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-container input::placeholder {
    color: #888;
    opacity: 1;
}

.form-container button {
    width: 100%;
    padding: 10px;
    background: linear-gradient(45deg, #ff007f, #ff4da6);
    border: none;
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.form-container button:hover {
    background: linear-gradient(45deg, #e60073, #ff3399);
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.4);
}

.error {
    color: #ff4da6;
    margin-bottom: 1rem;
    font-size: 14px;
}

.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 16px;
    background: linear-gradient(45deg, #ff007f, #ff4da6 _

);
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.pagination {
    text-align: center;
    padding: 24px 0;
    max-width: 1280px;
    margin: 0 auto;
}

.pagination a {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 4px;
    background: #1c1c1c;
    color: #ff007f;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: background 0.3s ease, color 0.3s ease;
}

.pagination a:hover {
    background: #ff007f;
    color: #fff;
}

.pagination a.active {
    background: linear-gradient(45deg, #ff007f, #ff4da6);
    color: #fff;
}

.web-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background: #1c1c1c;
    color: #e6e6e6;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.web-alert.show {
    opacity: 1;
}

.web-alert.success {
    border-left: 4px solid #00cc00;
}

.web-alert.error {
    border-left: 4px solid #ff4da6;
}

.close-alert {
    background: none;
    border: none;
    color: #e6e6e6;
    font-size: 16px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 16px;
    }
    
    .nav-links {
        margin-top: 10px;
        width: 100%;
        justify-content: flex-start;
    }
    
    .login-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .search-container {
        padding: 12px 16px;
    }
    
    .search-bar {
        max-width: 100%;
        padding: 10px 12px 10px 36px;
        font-size: 14px;
    }
    
    .search-icon {
        left: 24px;
        font-size: 14px;
    }
    
    .creator-grid {
        grid-template-columns: 1fr;
        padding: 1rem 12px;
    }
    
    .creator-card img {
        height: 200px;
    }
    
    .creator-card h2 {
        font-size: 1.2rem;
    }
    
    .tabs {
        flex-direction: column;
        padding: 12px 16px;
    }
    
    .tab {
        width: 100%;
        text-align: center;
        margin-bottom: 8px;
    }
    
    .form-container {
        margin: 1rem 12px;
        padding: 1rem;
    }
    
    .form-container input,
    .form-container select {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .form-container button {
        padding: 8px;
        font-size: 14px;
    }
    
    .pagination {
        padding: 16px 0;
    }
    
    .pagination a {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .back-to-top {
        bottom: 16px;
        right: 16px;
        padding: 10px 14px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 20px;
    }
    
    .login-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .search-bar {
        padding: 8px 15px px 32px;
        font-size: 12px;
    }
    
    .search-icon {
        left: 32px;
        font-size: 15px;
    }
    
    .creator-card img {
        height: 500px;
    }
    
    .creator-card h2 {
        font-size: 1.1rem;
    }
    
    .form-container h2 {
        font-size: 1.3rem;
    }
}
/* Style inputs and selects in edit-card-form */
.creator-card .edit-card-form input,
.creator-card .edit-card-form select {
    width: 100%;
    padding: 12px 16px;
    margin: 10px 0;
    background: #2a2a2a;
    border: 1px solid rgba(255, 0, 127, 0.3);
    color: #e6e6e6;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Manrope', sans-serif;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.creator-card .edit-card-form input:focus,
.creator-card .edit-card-form select:focus {
    outline: none;
    border-color: #ff007f;
    box-shadow: 0 0 8px rgba(255, 0, 127, 0.3);
}

.creator-card .edit-card-form select {
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23ff007f" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.creator-card .edit-card-form input::placeholder {
    color: #888;
    opacity: 1;
}

/* Style error messages in edit-card-form */
.creator-card .error {
    color: #ff4da6;
    margin: 10px 0;
    font-size: 14px;
    text-align: center;
}

/* Add padding to edit form for better spacing */
.creator-card .edit-card-form {
    padding: 0.5rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .creator-card .edit-card-form input,
    .creator-card .edit-card-form select {
        padding: 10px 14px;
        font-size: 14px;
        margin: 8px 0;
    }
    
    .creator-card .error {
        font-size: 13px;
    }
    
    .creator-card .edit-card-form {
        padding: 0.3rem;
    }
}

@media (max-width: 480px) {
    .creator-card .edit-card-form input,
    .creator-card .edit-card-form select {
        padding: 8px 12px;
        font-size: 12px;
        margin: 6px 0;
    }
}
.small-svg {
    width: 25px; /* 12px, smaller than w-4 (1rem) */
    height: 25px;
    vertical-align: middle; /* Align with text */
    fill: currentColor; /* Inherit color from parent (accent-white sets to white) */
}

/* Ensure the SVG aligns nicely in the button */
.btn .small-svg {
    margin-right: 0.5rem; /* Matches mr-2 (0.5rem) */
}

/* Adjust for mobile */
@media (max-width: 768px) {
    .small-svg {
        width: 0.625rem; /* 10px on mobile */
        height: 0.625rem;
    }
    
    .btn .small-svg {
        margin-right: 0.4rem;
    }
}