/* ===== RESET / BASE ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    background: linear-gradient(270deg, #0f1220, #111827, #1e1f2e);
    background-size: 600% 600%;
    color: #e5e7eb;
    line-height: 1.6;
    animation: gradientBG 20s ease infinite;
}

@keyframes gradientBG {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}

/* ===== NAVIGATION ===== */
nav {
    background: #111827;
    border-bottom: 1px solid #1f2937;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a {
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

nav a:hover {
    background: linear-gradient(90deg, #6366f1, #4f46e5);
    transform: scale(1.05);
}

/* ===== MAIN CONTAINER ===== */
main {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ===== HEADINGS ===== */
h1 {
    font-size: 2.4rem;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #4f46e5);
    margin: 10px auto 0;
    border-radius: 2px;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 14px;
    color: #cbd5f5;
}

/* ===== TEXT ===== */
p {
    color: #cbd5f5;
    margin-bottom: 14px;
}

ul {
    padding-left: 20px;
    margin-bottom: 14px;
}

ul li {
    margin-bottom: 8px;
}

/* ===== CARDS ===== */
.card {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 16px;
    padding: 25px 30px;
    margin-bottom: 25px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 20px #6366f1, 0 0 40px #4f46e5;
}

.card, form {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== FORMS ===== */
form {
    max-width: 480px;
    background: #111827;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid #1f2937;
    margin: 0 auto 30px auto;
    transition: box-shadow 0.3s ease;
}

form:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #9ca3af;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #1f2937;
    background: #0f1220;
    color: #e5e7eb;
    margin-bottom: 16px;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 10px rgba(99,102,241,0.4);
}

/* ===== BUTTONS ===== */
button, .btn {
    background: linear-gradient(90deg, #6366f1, #4f46e5);
    border: none;
    color: #fff;
    padding: 14px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

button:hover, .btn:hover {
    background: linear-gradient(90deg, #4f46e5, #6366f1);
    box-shadow: 0 0 10px #6366f1, 0 0 20px #4f46e5;
    transform: scale(1.05);
}

button:active, .btn:active {
    transform: scale(0.97);
}

.btn-secondary {
    background: #374151;
}

.btn-danger {
    background: #dc2626;
}

/* ===== SHOP ===== */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}

.product {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

.product h3 {
    font-size: 1.2rem;
}

.product .price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #a5b4fc;
}

/* ===== ADMIN ===== */
.admin-nav {
    display: flex;
    gap: 14px;
    margin-bottom: 22px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    border-bottom: 1px solid #1f2937;
    text-align: left;
}

.admin-table th {
    color: #9ca3af;
    font-weight: 600;
}

/* ===== ALERTS ===== */
.alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.alert-success {
    background: #064e3b;
    color: #6ee7b7;
}

.alert-success:hover {
    transform: scale(1.02);
}

.alert-error {
    background: #7f1d1d;
    color: #fecaca;
}

.alert-error:hover {
    transform: scale(1.02);
}

/* ===== ADSENSE SPACE ===== */
.ads {
    background: #020617;
    border: 2px dashed #6366f1;
    padding: 25px;
    text-align: center;
    color: #64748b;
    margin: 32px 0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.ads:hover {
    border-color: #4f46e5;
    color: #fff;
    transform: scale(1.02);
    box-shadow: 0 0 20px #6366f1, 0 0 40px #4f46e5;
}

/* ===== FOOTER ===== */
footer {
    margin-top: 60px;
    padding: 22px;
    text-align: center;
    color: #64748b;
    border-top: 1px solid #1f2937;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
    }

    h1 {
        font-size: 2rem;
    }

    .products {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #020617;
    border-top: 1px solid #1f2937;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    z-index: 9999;
}

.cookie-banner p {
    font-size: 0.9rem;
    color: #cbd5f5;
}

.cookie-banner a {
    color: #a5b4fc;
}

.cookie-banner button {
    white-space: nowrap;
}

a {
    color: #a5b4fc;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: 0;
    left: 0;
    background: #6366f1;
    transition: width 0.3s;
}

a:hover {
    color: #ffffff;
}

a:hover::after {
    width: 100%;
}