/* ============================================
   000form.com - Main Stylesheet
   Design: Dark, minimal, developer-focused
   ============================================ */

:root {
    --bg-primary: #050505;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #111111;
    --bg-card: #0d0d0d;
    --border-color: #1a1a1a;
    --border-hover: #2a2a2a;
    --text-primary: #fafafa;
    --text-secondary: #888888;
    --text-muted: #555555;
    --accent: #00ff88;
    --accent-dim: #00cc6a;
    --accent-glow: rgba(0, 255, 136, 0.15);
    --error: #ff4444;
    --warning: #ffaa00;
    --success: #00ff88;
    --font-display: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-display);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p { color: var(--text-secondary); }

a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--text-primary);
}

code, .mono {
    font-family: var(--font-mono);
}

/* ============================================
   Layout
   ============================================ */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

.container-sm { max-width: 640px; }
.container-md { max-width: 800px; }
.container-lg { max-width: 1000px; }

/* ============================================
   Navigation
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 0;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.nav.scrolled {
    border-bottom-color: var(--border-color);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    flex-wrap: wrap;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Mobile menu */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links, .nav-actions { display: none; }
    .nav-links.open, .nav-actions.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        padding: 1.5rem;
        border-bottom: 1px solid var(--border-color);
    }
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    min-height: 44px; /* Better touch target */
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
    border: 1px solid var(--accent);
}

.btn-primary:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
}

.btn-ghost:hover {
    color: var(--text-primary);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    min-height: 38px;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    min-height: 52px;
}

@media (min-width: 768px) {
    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
}

.btn-danger {
    background: var(--error);
    color: white;
}

.btn-danger:hover {
    background: #ff6666;
}

/* ============================================
   Forms
   ============================================ */

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-display);
    font-size: 16px; /* Prevents zoom on iOS */
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-error {
    color: var(--error);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.form-help {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

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

/* ============================================
   Cards
   ============================================ */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.card:hover {
    border-color: var(--border-hover);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
}

/* ============================================
   Code Blocks
   ============================================ */

.code-block {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .code-header {
        flex-direction: column;
        align-items: stretch;
    }
}

.code-lang {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(0, 255, 136, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.code-copy {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.code-copy:hover {
    color: var(--text-primary);
    background: var(--border-color);
}

.code-content {
    background: var(--bg-primary);
    padding: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.code-content pre {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
    white-space: pre;
    min-width: 100%;
}

@media (max-width: 480px) {
    .code-content pre {
        font-size: 0.75rem;
    }
}

.code-content .tag { color: #ff79c6; }
.code-content .attr { color: #50fa7b; }
.code-content .string { color: #f1fa8c; }
.code-content .comment { color: var(--text-muted); }

/* ============================================
   Hero Section
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero {
        padding: 8rem 0 6rem;
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-gradient {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
}

.hero-gradient-1 {
    top: -200px;
    right: -100px;
    background: var(--accent);
}

.hero-gradient-2 {
    bottom: -200px;
    left: -100px;
    background: #0088ff;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--accent-glow);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}

.hero-title {
    margin-bottom: 1.5rem;
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
}

.hero-title .highlight {
    color: var(--accent);
    position: relative;
}

.hero-description {
    font-size: clamp(1rem, 4vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

.hero-code {
    margin-top: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Features Section
   ============================================ */

.features {
    padding: 4rem 1rem;
    background: var(--bg-secondary);
}

@media (min-width: 768px) {
    .features {
        padding: 6rem 2rem;
    }
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .section-header {
        margin-bottom: 4rem;
    }
}

.section-header h2 {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-header p {
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    color: var(--text-secondary);
    line-height: 1.5;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    padding: 1.5rem;
    height: 100%;
}

@media (min-width: 768px) {
    .feature-card {
        padding: 2rem;
    }
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 12px;
    margin-bottom: 1.25rem;
    color: var(--accent);
}

@media (min-width: 768px) {
    .feature-icon {
        width: 56px;
        height: 56px;
        border-radius: 14px;
    }
    
    .feature-icon svg {
        width: 28px;
        height: 28px;
    }
}

.feature-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .feature-title {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

@media (min-width: 768px) {
    .feature-card p {
        font-size: 0.95rem;
    }
}

/* ============================================
   How It Works
   ============================================ */

.how-it-works {
    padding: 4rem 1rem;
    background: var(--bg-primary);
}

@media (min-width: 768px) {
    .how-it-works {
        padding: 6rem 2rem;
    }
}

.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 2rem auto 0;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        margin-top: 3rem;
    }
}

.step {
    position: relative;
    padding: 2rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s;
}

@media (min-width: 768px) {
    .step {
        padding: 2.5rem 2rem;
    }
}

.step:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.step-number {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: var(--bg-primary);
    font-weight: 700;
    font-size: 1.3rem;
    border-radius: 50%;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 20px rgba(0, 255, 136, 0.3);
}

@media (min-width: 768px) {
    .step-number {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
}

.step-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .step-title {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
}

.step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

@media (min-width: 768px) {
    .step p {
        font-size: 0.95rem;
    }
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
    padding: 4rem 1rem;
    background: var(--bg-secondary);
}

@media (min-width: 768px) {
    .cta-section {
        padding: 6rem 2rem;
    }
}

.cta-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .cta-card {
        padding: 4rem 2rem;
        border-radius: 24px;
    }
}

.cta-card h2 {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-card p {
    max-width: 500px;
    margin: 0 auto 1.5rem;
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .cta-card p {
        margin-bottom: 2rem;
    }
}

/* ============================================
   Footer
   ============================================ */

.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--text-primary);
}

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

/* ============================================
   Dashboard Layout
   ============================================ */

.dashboard {
    display: flex;
    min-height: 100vh;
    background: var(--bg-secondary);
}

.sidebar {
    width: 260px;
    background: var(--bg-primary);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: transform 0.3s ease;
    z-index: 999;
}

.sidebar-logo {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: block;
}

.sidebar-logo span {
    color: var(--accent);
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 0.25rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all 0.2s ease;
    min-height: 44px;
}

.sidebar-nav a:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.sidebar-nav a.active {
    background: var(--accent-glow);
    color: var(--accent);
}

.sidebar-nav svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 2rem;
    min-height: 100vh;
    width: calc(100% - 260px);
    transition: margin-left 0.3s ease;
}

/* Mobile dashboard */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 0 1rem;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
}

.mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: 0.3s;
    border-radius: 2px;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .mobile-header {
        display: flex;
    }
    
    .dashboard {
        padding-top: 60px;
    }
    
    .sidebar {
        transform: translateX(-100%);
        width: 85%;
        max-width: 320px;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .sidebar-logo {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 1rem;
    }
    
    .sidebar-nav a {
        padding: 1rem 1.25rem;
        font-size: 1.1rem;
    }
    
    body.sidebar-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }
    
    .main-content {
        margin-left: 240px;
        width: calc(100% - 240px);
        padding: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   Page Header
   ============================================ */

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

.page-title {
    font-size: 1.75rem;
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.5rem;
    }
}

/* ============================================
   Stats Cards
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

.stat-card {
    padding: 1.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-value.accent {
    color: var(--accent);
}

/* ============================================
   Forms Table
   ============================================ */

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -1rem;
    padding: 0 1rem;
}

.table-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    min-width: 600px;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 1rem 1.25rem;
    text-align: left;
}

.table th {
    background: var(--bg-tertiary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.table td {
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

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

.table tr:hover td {
    background: var(--bg-tertiary);
}

.table-link {
    color: var(--text-primary);
    font-weight: 500;
}

.table-link:hover {
    color: var(--accent);
}

/* ============================================
   Status Badge
   ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 100px;
}

.badge-success {
    background: rgba(0, 255, 136, 0.1);
    color: var(--success);
}

.badge-warning {
    background: rgba(255, 170, 0, 0.1);
    color: var(--warning);
}

.badge-error {
    background: rgba(255, 68, 68, 0.1);
    color: var(--error);
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* ============================================
   Endpoint Display
   ============================================ */

.endpoint-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .endpoint-display {
        flex-direction: column;
        align-items: stretch;
    }
}

.endpoint-method {
    padding: 0.25rem 0.5rem;
    background: var(--accent);
    color: var(--bg-primary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

.endpoint-url {
    flex: 1;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .endpoint-url {
        white-space: normal;
        word-break: break-all;
    }
}

/* ============================================
   Empty State
   ============================================ */

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    color: var(--text-muted);
}

.empty-title {
    margin-bottom: 0.5rem;
}

.empty-description {
    margin-bottom: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Alerts
   ============================================ */

.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.alert-success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    color: var(--success);
}

.alert-error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.2);
    color: var(--error);
}

.alert-warning {
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid rgba(255, 170, 0, 0.2);
    color: var(--warning);
}

/* ============================================
   Auth Pages
   ============================================ */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    font-family: var(--font-mono);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: inline-block;
}

.auth-logo span {
    color: var(--accent);
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem 1.5rem;
}

@media (min-width: 480px) {
    .auth-card {
        padding: 2rem;
    }
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.oauth-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 48px;
}

.oauth-btn:hover {
    border-color: var(--border-hover);
    background: var(--bg-secondary);
}

.oauth-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Email verification specific styles */
.email-verify-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .email-verify-wrapper {
        flex-direction: column;
        width: 100%;
    }
}

.email-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-secondary);
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    min-width: 220px;
    flex: 1;
}

@media (max-width: 600px) {
    .email-input-group {
        width: 100%;
    }
}

.email-icon {
    color: var(--text-muted);
    flex-shrink: 0;
}

.email-input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    width: 100%;
    padding: 0.5rem 0;
}

.email-input:focus {
    outline: none;
}

.email-input::placeholder {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.verify-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    min-width: 70px;
    min-height: 44px;
}

@media (max-width: 600px) {
    .verify-btn {
        width: 100%;
    }
}

.verify-btn:hover:not(:disabled) {
    background: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.verify-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.verify-btn.verified {
    background: var(--success);
}

.verify-btn .btn-spinner {
    animation: spin 1s linear infinite;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.6rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    min-height: 44px;
}

@media (max-width: 600px) {
    .copy-btn {
        width: 100%;
        justify-content: center;
    }
}

.copy-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--bg-primary);
}

.copy-btn.copied {
    background: var(--success);
    color: var(--bg-primary);
    border-color: var(--success);
}

.copy-text {
    display: inline;
}

@media (max-width: 380px) {
    .copy-text {
        display: none;
    }
}

.email-highlight {
    background: rgba(0, 255, 136, 0.2);
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    font-weight: 600;
    color: var(--accent);
    border: 1px solid rgba(0, 255, 136, 0.3);
    word-break: break-all;
}

.status-message {
    font-size: 0.9rem;
    min-height: 1.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    text-align: center;
    word-break: break-word;
}

.status-message.verified { 
    color: var(--success);
    background: rgba(0, 255, 136, 0.1);
}
.status-message.pending { 
    color: var(--warning);
    background: rgba(255, 193, 7, 0.1);
}
.status-message.error { 
    color: var(--error);
    background: rgba(255, 68, 68, 0.1);
}

.test-form {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.test-form-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.test-form-header svg {
    color: var(--accent);
    flex-shrink: 0;
}

.test-form-header h4 {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
}

.mini-test-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 500px;
    margin: 0 auto;
}

.test-form-row {
    width: 100%;
}

.mini-test-form input,
.mini-test-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.2s;
}

.mini-test-form input:focus,
.mini-test-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.btn-submit-mini {
    width: 100%;
    padding: 0.75rem;
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.5rem;
    min-height: 48px;
}

.btn-submit-mini:hover:not(:disabled) {
    background: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-submit-mini:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.test-response {
    margin-top: 1rem;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-align: center;
    word-break: break-word;
}

.test-response.success {
    background: rgba(0, 255, 136, 0.1);
    color: var(--success);
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.test-response.error {
    background: rgba(255, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(255, 68, 68, 0.2);
}

/* ============================================
   Utilities
   ============================================ */

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.hidden { display: none; }

/* Fix for iOS input zoom */
input, textarea, select, button {
    font-size: 16px;
}

@media (max-width: 768px) {
    input, textarea, select, button {
        font-size: 16px !important;
    }
}

/* Improve tap targets on mobile */
button, 
.btn, 
.verify-btn, 
.copy-btn,
.sidebar-nav a,
.nav-links a,
.nav-toggle {
    min-height: 44px;
    min-width: 44px;
}

/* Better spacing on mobile */
@media (max-width: 480px) {
    section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
}

/* ============================================
   Animations
   ============================================ */

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}