:root {
    --bg: #09090b;
    /* Zinc 950 */
    --card-bg: #121214;
    --sidebar-bg: #0c0c0e;
    --border: #27272a;
    /* Zinc 800 */
    --primary: #ffffff;
    --muted: #a1a1aa;
    --accent: #6366f1;
    --font: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg);
    color: var(--primary);
    font-family: var(--font);
    height: 100vh;
    overflow: hidden;
}

/* --- BACKGROUND --- */
.background-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

.ambient-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(circle at 50% -20%, rgba(99, 102, 241, 0.15), transparent 50%);
}

.app-shell {
    display: flex;
    height: 100vh;
}

/* --- SIDEBAR --- */
.sidebar {
    width: 72px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 0;
    z-index: 20;
}

.logo-box {
    width: 40px;
    height: 40px;
    background: white;
    color: black;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 40px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.nav-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    flex-grow: 1;
    width: 100%;
}

.nav-link {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 1.2rem;
    text-decoration: none;
    transition: 0.2s;
    position: relative;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-spacer {
    flex-grow: 1;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: #27272a;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

/* --- MAIN CONTENT --- */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.glass-header {
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    border-bottom: 1px solid var(--border);
    background: rgba(9, 9, 11, 0.7);
    backdrop-filter: blur(12px);
    z-index: 10;
}

.page-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.header-right {
    display: flex;
    gap: 16px;
    align-items: center;
}

.search-bar {
    background: #18181b;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 260px;
    transition: 0.2s;
}

.search-bar:focus-within {
    border-color: #52525b;
    background: #27272a;
}

.search-bar input {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    width: 100%;
    font-size: 0.9rem;
}

.search-bar i {
    color: var(--muted);
    font-size: 0.8rem;
}

.kbd {
    background: #27272a;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    color: #a1a1aa;
    border: 1px solid #3f3f46;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    border-color: #52525b;
    color: white;
}

/* --- CONTENT AREA --- */
.content-wrapper {
    flex-grow: 1;
    overflow-y: auto;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 1px;
    white-space: nowrap;
}

.line {
    height: 1px;
    background: var(--border);
    width: 100%;
}

/* HERO CARD */
.hero-card {
    display: block;
    position: relative;
    background: var(--card-bg);
    border-radius: 16px;
    text-decoration: none;
    color: white;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
    margin-bottom: 50px;
}

.hero-card:hover {
    transform: translateY(-4px);
    border-color: #3f3f46;
}

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background: radial-gradient(circle at top right, #6366f1, transparent 60%);
}

.hero-content {
    position: relative;
    padding: 40px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.app-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.main-icon {
    background: #6366f1;
    color: white;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.status-chip {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 100px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.live {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.dot {
    width: 6px;
    height: 6px;
    background: #34d399;
    border-radius: 50%;
    box-shadow: 0 0 8px #34d399;
}

.hero-text h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.hero-text p {
    color: var(--muted);
    font-size: 1rem;
    max-width: 600px;
    line-height: 1.5;
}

.hero-footer {
    margin-top: 10px;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: black;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.2s;
}

.hero-card:hover .btn-action {
    gap: 15px;
}

/* GRID LAYOUT */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-bottom: 60px;
}

.tool-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.tool-card:hover {
    transform: translateY(-2px);
    border-color: #3f3f46;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
}

.blue {
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
}

.pink {
    background: linear-gradient(90deg, transparent, #ec4899, transparent);
}

.gold {
    background: linear-gradient(90deg, transparent, #eab308, transparent);
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.icon-blue {
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.1);
}

.icon-pink {
    color: #f472b6;
    background: rgba(236, 72, 153, 0.1);
}

.icon-gold {
    color: #facc15;
    background: rgba(234, 179, 8, 0.1);
}

.upcoming {
    background: #18181b;
    border: 1px solid #27272a;
    color: #71717a;
}

.tool-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 10px;
}

.tool-card p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.4;
    flex-grow: 1;
}

.notify-btn {
    width: 100%;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: 0.2s;
    margin-top: 10px;
}

.notify-btn:hover {
    border-color: white;
    color: white;
}

@media(max-width: 1024px) {
    .grid-layout {
        grid-template-columns: 1fr;
    }
}
