/* --- 2026 MODERN BLACK THEME CONFIG --- */
:root {
    --bg-pure: #000000;
    --bg-dark: #050505;
    --card-glass: rgba(15, 15, 15, 0.7);
    --accent-red: #ff0033;
    --accent-red-glow: rgba(255, 0, 51, 0.4);
    --text-main: #ffffff;
    --text-dim: #888888;
    --border: rgba(255, 255, 255, 0.08);
    --input-bg: rgba(255, 255, 255, 0.03);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

body {
    background-color: var(--bg-pure);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-pure); }
::-webkit-scrollbar-thumb { background: #222; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-red); }

/* --- AUTH PAGE LAYOUT (Login/Register) --- */
.auth-wrapper {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at top right, #110000 0%, #000 50%);
}

.glass-box {
    width: 100%;
    max-width: 420px;
    background: var(--card-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
}

/* --- DYNAMIC RED ERROR BOX --- */
.error-msg {
    background: rgba(255, 0, 51, 0.1);
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
    padding: 14px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-shadow: 0 0 10px var(--accent-red-glow);
    animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* --- FORM ELEMENTS --- */
h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.subtitle {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: 14px;
    color: white;
    font-size: 1rem;
    margin-bottom: 15px;
    transition: var(--transition);
}

input:focus {
    outline: none;
    border-color: var(--accent-red);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 20px rgba(255, 0, 51, 0.1);
}

.main-btn {
    width: 100%;
    padding: 16px;
    background: var(--text-white);
    background: white;
    color: black;
    border: none;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
    transition: var(--transition);
}

.main-btn:hover {
    transform: translateY(-3px);
    background: var(--accent-red);
    color: white;
    box-shadow: 0 10px 20px rgba(255, 0, 51, 0.3);
}

.toggle-text {
    margin-top: 25px;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.toggle-text span {
    color: var(--text-main);
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* --- SHOP INTERFACE (index.html) --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 6%;
    position: sticky;
    top: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.logo {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--accent-red);
}

.shop-container {
    padding: 60px 6%;
}

.hero {
    text-align: center;
    padding: 100px 0;
}

.hero h2 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 10px;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--card-glass);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    border-color: var(--accent-red);
    transform: translateY(-10px);
}

.product-image {
    width: 100%;
    height: 250px;
    background: #111;
    border-radius: 18px;
    margin-bottom: 15px;
}

.price {
    color: var(--accent-red);
    font-weight: 800;
    font-size: 1.2rem;
}

/* Helper Classes */
.hidden { display: none !important; }

.debug-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.7rem;
    cursor: pointer;
}

.debug-btn:hover { background: #111; color: white; }