:root {
    --bg-dark: #050505;
    --text-main: #f0f0f0;
    --text-muted: #888888;
    --accent-1: #00ffcc;
    --accent-2: #7000ff;
    --accent-3: #ff0055;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Gradients */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: float 20s infinite alternate cubic-bezier(0.5, 0, 0.5, 1);
}

.orb-1 { width: 500px; height: 500px; background: var(--accent-1); top: -100px; left: -100px; }
.orb-2 { width: 600px; height: 600px; background: var(--accent-2); bottom: -200px; right: -100px; animation-delay: -5s; }
.orb-3 { width: 400px; height: 400px; background: var(--accent-3); top: 40%; left: 30%; animation-delay: -10s; opacity: 0.2;}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Header */
.glass-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.5px;
}

.logo-icon {
    color: var(--accent-1);
}

nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

nav a:hover, nav a.active {
    color: var(--text-main);
    border-bottom: 2px solid var(--accent-1);
    padding-bottom: 5px;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(45deg, var(--accent-2), var(--accent-1));
    color: var(--bg-dark) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600 !important;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 255, 204, 0.2);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-main);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-weight: 600;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Tab Management */
.view-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.active-view {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Main */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero {
    text-align: center;
    padding: 6rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-label {
    background: rgba(0, 255, 204, 0.1);
    color: var(--accent-1);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    border: 1px solid rgba(0, 255, 204, 0.3);
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -2px;
}

.hero-title span {
    background: linear-gradient(45deg, var(--accent-1), #b300ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    line-height: 1.6;
}

.merchant-tag {
    background: rgba(112, 0, 255, 0.1);
    color: #e0b0ff;
    border: 1px solid rgba(112, 0, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: 'Space Grotesk', monospace;
}

/* Store */
.store {
    padding: 2rem 0;
}

.store-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.store-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-1);
    font-size: 0.9rem;
    background: rgba(0, 255, 204, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 204, 0.2);
}

.pulsing-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-1);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 204, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 255, 204, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 204, 0); }
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover::before {
    opacity: 1;
}

.product-id {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
}

.status {
    color: var(--accent-1);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--glass-border);
}

.product-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.product-features {
    list-style: none;
    margin-bottom: 2rem;
}

.product-features li {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-features li::before {
    content: '→';
    color: var(--accent-2);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
}

.price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.stock-info {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    text-align: right;
}

/* Ledger Table */
.ledger-table-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    overflow: hidden;
}

.ledger-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.ledger-table th {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-bottom: 1px solid var(--glass-border);
}

.ledger-table td {
    padding: 1rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-main);
}

.ledger-table tr:last-child td {
    border-bottom: none;
}

.ledger-table tbody tr {
    transition: background 0.3s;
}
.ledger-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.badge-success {
    background: rgba(0, 255, 204, 0.1);
    color: var(--accent-1);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Code Block */
.code-block {
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 15px;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.9rem;
    color: #a5d6ff;
    overflow-x: auto;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
    white-space: pre-wrap;
}
