/* Removed broken @import "tailwindcss" */

:root {
    --bg-color: #0c0c0e;
    --app-bg: #111114;
    --card-bg: #1a1a1e;
    --accent-color: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.2);
    --accent-gradient: linear-gradient(135deg, #6366f1, #4f46e5);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.08);
    --input-focus: rgba(99, 102, 241, 0.15);
    --success: #10b981;
    --error: #ef4444;
    --nav-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    -webkit-font-smoothing: antialiased;
}

/* App Wrapper for Desktop */
.app-wrapper {
    width: 100%;
    max-width: 440px;
    height: 100vh;
    background: var(--app-bg);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 100px rgba(0,0,0,0.5);
}

@media (min-width: 440px) {
    .app-wrapper {
        height: 850px;
        border-radius: 40px;
        border: 8px solid #27272a;
    }
    body {
        background: radial-gradient(circle at top right, #1e1b4b 0%, #0c0c0e 40%);
    }
}

.scroll-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    padding-bottom: calc(var(--nav-height) + 40px);
    scrollbar-width: none;
}
.scroll-content::-webkit-scrollbar { display: none; }

/* Status Bar & Header */
.app-header {
    padding: 24px 24px 10px;
    background: var(--app-bg);
    z-index: 10;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.brand {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation System */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(26, 26, 30, 0.85);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 600;
    transition: all 0.2s;
}

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

.nav-icon {
    font-size: 1.4rem;
}

/* Wizard Cards */
.wizard-card {
    background: transparent;
    padding: 0;
    box-shadow: none;
    margin-bottom: 0;
    min-height: auto;
}

.step-card {
    background: var(--card-bg);
    border-radius: 28px;
    padding: 24px;
    border: 1px solid var(--glass-border);
    margin-bottom: 24px;
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #fff;
    line-height: 1.2;
}

.step-desc {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Inputs */
.input-main-wrap {
    background: #27272a;
    padding: 4px;
    border-radius: 18px;
    border: 2px solid transparent;
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    transition: all 0.2s;
}

.input-main-wrap:focus-within {
    border-color: var(--accent-color);
    background: #18181b;
}

input[type="url"], .input-field, select {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    padding: 14px 16px;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Plan Cards */
.plan-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.plan-card {
    cursor: pointer;
    background: #27272a;
    border: 2px solid transparent;
    padding: 20px;
    border-radius: 20px;
    transition: all 0.2s;
}

.plan-card.active {
    border-color: var(--accent-color);
    background: rgba(99, 102, 241, 0.05);
}

.plan-badge {
    background: var(--accent-gradient);
    color: white;
    font-size: 0.6rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 800;
}

/* Buttons */
.primary-btn {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.primary-btn:active {
    transform: scale(0.96);
    filter: brightness(0.9);
}

.secondary-btn {
    background: #27272a;
    color: #fff;
    border: none;
    padding: 18px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
}

/* Animations */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hidden { display: none !important; }

/* Grid perms */
.perms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.perm-item {
    background: #27272a;
    padding: 12px 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--glass-border);
}

.perm-item input { height: 18px; width: 18px; accent-color: var(--accent-color); }

.terminal-view {
    background: #000;
    border-radius: 20px;
    padding: 15px;
    font-family: monospace;
    font-size: 0.75rem;
    color: #4ade80;
    height: 180px;
    overflow-y: auto;
    border: 1px solid #111;
}

/* Floating label/info */
.field-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
