* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: #0a0a0a;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.01) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

main {
    position: relative;
    z-index: 1;
}

header {
    background: rgba(17, 17, 17, 0.95);
    border-bottom: 1px solid #1f1f1f;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #ffffff;
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
    font-size: 0.95rem;
}

nav a:hover {
    color: #ffffff;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    margin: 4rem 0;
    padding: 2rem;
}

.hero {
    text-align: center;
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border: 1px solid #1f1f1f;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 40%, rgba(255,255,255,0.05) 0%, transparent 30%),
        radial-gradient(circle at 70% 60%, rgba(255,255,255,0.03) 0%, transparent 30%);
    animation: heroGlow 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes heroGlow {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(10%, 10%) rotate(180deg); }
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, rgba(255, 255, 255, 0.01) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.01) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.01) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.01) 75%);
    background-size: 60px 60px;
    background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
    pointer-events: none;
    opacity: 0.3;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #ffffff;
    position: relative;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #a0a0a0;
    position: relative;
}

button {
    background: #ffffff;
    color: #0a0a0a;
    border: none;
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

button:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 700;
}

p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #a0a0a0;
}

a {
    color: #ffffff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.product-card {
    background: #111111;
    border: 1px solid #1f1f1f;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover {
    border-color: #2f2f2f;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.product-card:hover::before {
    opacity: 1;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #1f1f1f;
}

.product-card h3 {
    padding: 1rem 1rem 0.5rem;
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 600;
}

.product-card .description {
    padding: 0 1rem;
    font-size: 0.9rem;
    color: #808080;
}

.product-card .price {
    padding: 0.5rem 1rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
}

.product-card .add-to-cart {
    width: calc(100% - 2rem);
    margin: 0 1rem 1rem;
    background: #ffffff;
    color: #0a0a0a;
}

.product-card .add-to-cart:hover {
    background: #e0e0e0;
}

#cart-items {
    min-height: 200px;
}

.empty-cart {
    text-align: center;
    color: #606060;
    padding: 3rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #111111;
    border: 1px solid #1f1f1f;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.cart-item-price {
    color: #a0a0a0;
    font-size: 1.1rem;
}

.remove-btn {
    background: #1f1f1f;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border: 1px solid #2f2f2f;
}

.remove-btn:hover {
    background: #2f2f2f;
}

#cart-total {
    text-align: right;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #1f1f1f;
}

#cart-total h3 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.checkout-btn {
    background: #ffffff;
    color: #0a0a0a;
    font-size: 1.1rem;
    padding: 1rem 3rem;
}

.checkout-btn:hover {
    background: #e0e0e0;
}

.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.login-modal.active {
    display: flex;
}

.login-content {
    background: #111111;
    border: 1px solid #1f1f1f;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.login-content h2 {
    margin-bottom: 1rem;
    color: #ffffff;
}

.login-content p {
    color: #808080;
    margin-bottom: 2rem;
}

.discord-login-btn {
    background: #5865F2;
    color: white;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.discord-login-btn:hover {
    background: #4752C4;
    transform: translateY(-1px);
}

.user-info {
    display: none;
    align-items: center;
    gap: 1rem;
}

.user-info.active {
    display: flex;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #1f1f1f;
}

.user-name {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.95rem;
}

.login-btn {
    background: #ffffff;
    color: #0a0a0a;
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.login-btn:hover {
    background: #e0e0e0;
}

.logout-btn {
    background: #1f1f1f;
    color: #ffffff;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    border: 1px solid #2f2f2f;
}

.logout-btn:hover {
    background: #2f2f2f;
}

.cancel-btn {
    background: #1f1f1f;
    color: #ffffff;
    margin-top: 1rem;
    border: 1px solid #2f2f2f;
}

.cancel-btn:hover {
    background: #2f2f2f;
}

.auth-form {
    text-align: left;
    width: 100%;
}

.auth-form input {
    width: 100%;
    padding: 0.9rem;
    margin-bottom: 1rem;
    border: 1px solid #1f1f1f;
    background: #0a0a0a;
    color: #ffffff;
    border-radius: 6px;
    font-size: 0.95rem;
}

.auth-form input:focus {
    outline: none;
    border-color: #3f3f3f;
}

.auth-form input::placeholder {
    color: #606060;
}

.email-login-btn {
    width: 100%;
    background: #ffffff;
    color: #0a0a0a;
    padding: 1rem;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.email-login-btn:hover {
    background: #e0e0e0;
}

.form-switch {
    text-align: center;
    font-size: 0.9rem;
    margin: 1rem 0;
    color: #808080;
}

.form-switch a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

.form-switch a:hover {
    text-decoration: underline;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: #606060;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #1f1f1f;
}

.divider span {
    padding: 0 1rem;
    font-size: 0.85rem;
}

.discord-login-btn {
    width: 100%;
}

footer {
    background: #111111;
    border-top: 1px solid #1f1f1f;
    color: #808080;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

.search-container {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 2rem auto;
}

.search-container input,
.search-container select {
    flex: 1;
    padding: 0.9rem 1rem;
    border: 1px solid #1f1f1f;
    background: #111111;
    color: #ffffff;
    border-radius: 6px;
    font-size: 0.95rem;
}

.search-container input:focus,
.search-container select:focus {
    outline: none;
    border-color: #3f3f3f;
}

.search-container input::placeholder {
    color: #606060;
}

.search-btn {
    background: #ffffff;
    color: #0a0a0a;
    padding: 0.9rem 1.5rem;
    white-space: nowrap;
}

.search-btn:hover {
    background: #e0e0e0;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #606060;
    font-size: 1.2rem;
}

.admin-card {
    background: #111111;
    border: 1px solid #1f1f1f;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.admin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

.admin-card h3 {
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 600;
}

.admin-card textarea {
    width: 100%;
    padding: 0.9rem;
    margin-bottom: 1rem;
    border: 1px solid #1f1f1f;
    background: #0a0a0a;
    color: #ffffff;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
}

.admin-card textarea:focus {
    outline: none;
    border-color: #3f3f3f;
}

.staff-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #0a0a0a;
    border: 1px solid #1f1f1f;
    margin-bottom: 0.5rem;
    border-radius: 6px;
}

.staff-item strong {
    color: #ffffff;
}

.staff-item small {
    color: #808080;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: #111111;
    border: 1px solid #1f1f1f;
    padding: 2rem;
    border-radius: 8px;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #1f1f1f;
}

.profile-info h2 {
    margin: 0 0 0.5rem 0;
    color: #ffffff;
}

.profile-info p {
    margin: 0.25rem 0;
    color: #808080;
}

.seller-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #1f1f1f;
    color: #ffffff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    border: 1px solid #2f2f2f;
}

.seller-info {
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-top: 1px solid #1f1f1f;
}

.category-badge {
    display: inline-block;
    background: #1f1f1f;
    color: #ffffff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    margin: 0.5rem 1rem;
    font-weight: 500;
    border: 1px solid #2f2f2f;
}

.ticket-card {
    background: #111111;
    border: 1px solid #1f1f1f;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.ticket-card:hover {
    border-color: #2f2f2f;
    transform: translateY(-1px);
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #1f1f1f;
}

.ticket-header h3 {
    margin: 0;
    color: #ffffff;
}

.ticket-body p {
    margin: 0.5rem 0;
    color: #808080;
}

.feature-box {
    background: #111111;
    border: 1px solid #1f1f1f;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-box:hover {
    border-color: #2f2f2f;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.feature-box:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: #1f1f1f;
    border: 1px solid #2f2f2f;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s;
}

.feature-box:hover .feature-icon {
    background: #2f2f2f;
    border-color: #3f3f3f;
    transform: scale(1.05);
}

.feature-box h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.feature-box p {
    color: #a0a0a0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.contact-box {
    background: #111111;
    border: 1px solid #1f1f1f;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.contact-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.contact-box:hover {
    border-color: #2f2f2f;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.contact-box:hover::before {
    opacity: 1;
}

.contact-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.discord-icon {
    background: #5865F2;
    color: white;
}

.telegram-icon {
    background: #0088cc;
    color: white;
}

.contact-box:hover .contact-icon {
    transform: scale(1.08);
}

.contact-box h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-box p {
    color: #a0a0a0;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.contact-btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.discord-btn {
    background: #ffffff;
    color: #0a0a0a;
}

.discord-btn:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.telegram-btn {
    background: #ffffff;
    color: #0a0a0a;
}

.telegram-btn:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.telegram-btn.disabled {
    background: #2f2f2f;
    color: #808080;
    cursor: not-allowed;
    opacity: 0.6;
}

.telegram-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

.tos-section {
    margin-bottom: 2.5rem;
}

.tos-section h2 {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.tos-section p {
    color: #a0a0a0;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.tos-section ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.tos-section ul li {
    color: #a0a0a0;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.tos-section ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #ffffff;
    font-weight: bold;
}
