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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    min-height: 100vh;
}

.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
}

h1 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1rem;
    font-weight: 500;
}

.subtitle {
    color: #888;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    border: 1px solid #333;
    border-radius: 6px;
    background: #1a1a1a;
    color: #e0e0e0;
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
}

.btn:hover {
    background: #252525;
}

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

.btn-primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-danger {
    background: #991b1b;
    border-color: #991b1b;
    color: #fff;
}

.btn-danger:hover {
    background: #7f1d1d;
}

.btn-small {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

/* Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #222;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #888;
}

/* Connectors */
.connectors {
    margin-top: 1rem;
}

.connectors h2 {
    margin-bottom: 1rem;
}

.connector-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.connector-card {
    border: 1px solid #222;
    border-radius: 8px;
    padding: 1rem;
    background: #111;
}

.connector-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-active {
    background: #064e3b;
    color: #6ee7b7;
}

.status-pending {
    background: #78350f;
    color: #fcd34d;
}

.status-error {
    background: #7f1d1d;
    color: #fca5a5;
}

.sync-time {
    font-size: 0.8125rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.empty-state {
    color: #555;
    padding: 2rem 0;
    text-align: center;
}

.add-connector {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #222;
}

.add-connector h3 {
    margin-bottom: 0.75rem;
}

/* Connect flow */
.connect-form {
    margin-top: 1rem;
}

.step {
    margin-bottom: 1rem;
}

.step p {
    color: #888;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.step form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

input[type="tel"],
input[type="text"],
input[type="password"] {
    padding: 0.625rem 0.75rem;
    border: 1px solid #333;
    border-radius: 6px;
    background: #111;
    color: #e0e0e0;
    font-size: 0.875rem;
    flex: 1;
}

input:focus {
    outline: none;
    border-color: #2563eb;
}

/* Utility */
.error {
    color: #f87171;
    font-size: 0.875rem;
    margin-top: 1rem;
}

.loading {
    color: #888;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Privacy page */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #222;
}

.back-link {
    color: #888;
    text-decoration: none;
    font-size: 0.875rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.back-link:hover {
    color: #e0e0e0;
}

.privacy-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #1a1a1a;
}

.privacy-section:last-child {
    border-bottom: none;
}

.privacy-section h2 {
    margin-bottom: 0.5rem;
}

.privacy-section p {
    color: #aaa;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.privacy-section ul {
    list-style: none;
    padding: 0;
}

.privacy-section li {
    color: #aaa;
    font-size: 0.9375rem;
    line-height: 1.6;
    padding: 0.25rem 0;
    padding-left: 1rem;
    position: relative;
}

.privacy-section li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    color: #555;
}

.privacy-section code {
    background: #1a1a1a;
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    font-size: 0.875rem;
}

.link {
    color: #60a5fa;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

.danger-zone {
    border: 1px solid #991b1b;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 2rem;
}

.dashboard-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #222;
    text-align: center;
    font-size: 0.875rem;
}

/* Docs page */
.docs-container {
    max-width: 720px;
}

.docs-hero {
    text-align: center;
    padding: 2rem 0 2.5rem;
    border-bottom: 1px solid #222;
    margin-bottom: 2rem;
}

.hero-subtitle {
    color: #888;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.docs-section {
    margin-bottom: 2.5rem;
}

.docs-section h2 {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #1a1a1a;
}

.docs-section p {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.tool-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tool-card {
    border: 1px solid #222;
    border-radius: 8px;
    padding: 1rem;
    background: #111;
}

.tool-card h3 {
    margin-bottom: 0.5rem;
}

.tool-card p {
    color: #aaa;
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

.tool-params {
    font-size: 0.8125rem;
    line-height: 1.8;
}

.param {
    background: #1a1a1a;
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    font-family: monospace;
    color: #60a5fa;
}

.param-desc {
    color: #666;
    margin-left: 0.25rem;
}

.setup-step {
    margin-bottom: 1.5rem;
}

.setup-step h3 {
    margin-bottom: 0.5rem;
}

.setup-step h4 {
    color: #ccc;
    font-size: 0.9375rem;
    margin: 0.75rem 0 0.25rem;
}

.example-list {
    list-style: none;
    padding: 0;
}

.example-list li {
    color: #aaa;
    padding: 0.25rem 0 0.25rem 1rem;
    position: relative;
    font-style: italic;
}

.example-list li::before {
    content: "\201C";
    position: absolute;
    left: 0;
    color: #555;
}

.auth-flow {
    padding-left: 1.25rem;
    color: #aaa;
    font-size: 0.9375rem;
    line-height: 1.8;
}

.security-list {
    list-style: none;
    padding: 0;
}

.security-list li {
    color: #aaa;
    font-size: 0.9375rem;
    line-height: 1.6;
    padding: 0.25rem 0 0.25rem 1.25rem;
    position: relative;
}

.security-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #6ee7b7;
}

.code-block {
    background: #111;
    border: 1px solid #222;
    border-radius: 6px;
    padding: 1rem;
    font-size: 0.8125rem;
    overflow-x: auto;
    color: #ccc;
    line-height: 1.6;
    margin: 0.75rem 0;
}

.endpoints-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.endpoints-table th {
    text-align: left;
    padding: 0.5rem;
    border-bottom: 1px solid #333;
    color: #888;
    font-weight: 500;
}

.endpoints-table td {
    padding: 0.5rem;
    border-bottom: 1px solid #1a1a1a;
    color: #aaa;
}

.docs-footer {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid #222;
    text-align: center;
    color: #555;
    font-size: 0.875rem;
}
