:root {
    --nm-bg: #E0E5EC;
    --nm-shadow-light: #ffffff;
    --nm-shadow-dark: #a3b1c6;
    --primary: #ec5b13;
    --yt-red: #ff0000;
    --tt-blue: #00f2ea;
    --tt-pink: #ff0050;
    --ig-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    --text-main: #334155;
    --text-muted: #64748b;
}

[data-theme="dark"] {
    --nm-bg: #1a1a1a;
    --nm-shadow-light: #252525;
    --nm-shadow-dark: #0f0f0f;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', 'Public Sans', sans-serif;
}

body {
    background-color: var(--nm-bg);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease;
}

/* Utilities */
.nm-raised {
    background: var(--nm-bg);
    box-shadow: 9px 9px 16px var(--nm-shadow-dark), -9px -9px 16px var(--nm-shadow-light);
}

.nm-inset {
    background: var(--nm-bg);
    box-shadow: inset 6px 6px 12px var(--nm-shadow-dark), inset -6px -6px 12px var(--nm-shadow-light);
}

.nm-pressed {
    box-shadow: inset 4px 4px 8px var(--nm-shadow-dark), inset -4px -4px 8px var(--nm-shadow-light);
}

.nm-icon-box {
    box-shadow: 4px 4px 8px var(--nm-shadow-dark), -4px -4px 8px var(--nm-shadow-light);
}

/* Header */
header {
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

h1.title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

/* Theme Toggle */
.theme-switch {
    width: 56px;
    height: 32px;
    border-radius: 9999px;
    cursor: pointer;
    position: relative;
    padding: 4px;
    transition: all 0.3s ease;
}

.switch-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.switch-thumb span {
    font-size: 14px;
}

/* Main Layout */
main {
    flex: 1;
    padding: 0 1.5rem 6rem;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.neu-card {
    border-radius: 20px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.neu-card:active {
    transform: scale(0.98);
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.card-content {
    flex: 1;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.card-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.card-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Input Group */
.input-group {
    margin-top: 2rem;
    position: relative;
}

.neu-input {
    width: 100%;
    border: none;
    outline: none;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    font-size: 0.875rem;
    color: var(--text-main);
}

.neu-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Action Button */
.btn-container {
    margin-top: 1.5rem;
}

.neu-btn {
    width: 100%;
    height: 56px;
    border-radius: 16px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-inner {
    width: calc(100% - 6px);
    height: calc(100% - 6px);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--nm-bg);
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    pointer-events: none;
    z-index: 100;
}

.nav-container {
    max-width: 400px;
    margin: 0 auto;
    height: 72px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 1rem;
    pointer-events: auto;
}

.nav-item {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.nav-item.active {
    color: var(--primary);
}

/* Platform specific */
.bg-yt { color: var(--yt-red); }
.bg-tt { color: var(--text-main); }
.bg-ig { color: #bc1888; }

/* Loader */
.loader {
    width: 24px;
    height: 24px;
    border: 3px solid var(--text-muted);
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 480px) {
    header { padding-top: 3rem; }
    main { padding-bottom: 7rem; }
}
