@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #08080d;
    --bg-secondary: #0d0d14;
    --card: #11111a;
    --card-hover: #151520;
    --border: #22222f;
    --text: #f5f5f7;
    --muted: #8b8b9a;
    --primary: #8b5cf6;
    --primary-hover: #7c3aed;
    --green: #22c55e;
    --blue: #3b82f6;
    --orange: #f59e0b;
    --red: #ef4444;
    --pink: #ec4899;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font-family: inherit;
}

button {
    cursor: pointer;
}

.navbar {
    width: 100%;
    height: 76px;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: rgba(8, 8, 13, .8);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 800;
}

.logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: white;
}

.nav-links {
    display: flex;
    gap: 32px;
    color: var(--muted);
    font-size: 14px;
}

.nav-links a:hover {
    color: white;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn {
    border: 0;
    border-radius: 9px;
    padding: 10px 17px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: .2s;
}

.btn-primary {
    color: white;
    background: linear-gradient(135deg, #8b5cf6, #6d4bea);
    box-shadow: 0 5px 20px rgba(139, 92, 246, .2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(139, 92, 246, .3);
}

.btn-ghost {
    color: #bbb;
}

.btn-ghost:hover {
    color: white;
}

.btn-outline {
    border: 1px solid var(--border);
    color: white;
    background: rgba(255,255,255,.02);
}

.btn-outline:hover {
    background: rgba(255,255,255,.06);
    border-color: #444454;
}

.btn-large {
    padding: 14px 22px;
}

.btn-full {
    width: 100%;
}

.hero {
    min-height: 650px;
    padding: 100px 7%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
    background:
        radial-gradient(circle at 20% 30%, rgba(139,92,246,.12), transparent 35%),
        radial-gradient(circle at 80% 60%, rgba(59,130,246,.08), transparent 35%);
}

.hero-content {
    max-width: 650px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.03);
    padding: 8px 12px;
    border-radius: 30px;
    color: #aaa;
    font-size: 12px;
    margin-bottom: 25px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
}

.hero h1 {
    font-size: clamp(45px, 5vw, 72px);
    line-height: 1.05;
    letter-spacing: -3px;
    margin-bottom: 24px;
}

.hero h1 span {
    display: block;
    background: linear-gradient(90deg, #a78bfa, #60a5fa);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
    max-width: 570px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.hero-stats {
    display: flex;
    gap: 45px;
    margin-top: 45px;
}

.hero-stats div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hero-stats strong {
    font-size: 20px;
}

.hero-stats span {
    font-size: 12px;
    color: var(--muted);
}

.hero-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #0d0d14;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,.4);
    transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
}

.window-top {
    height: 45px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 20px;
    color: #777;
    font-size: 11px;
}

.window-dots {
    display: flex;
    gap: 5px;
}

.window-dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #33333d;
}

.code-area {
    padding: 25px;
    font-family: monospace;
    font-size: 12px;
    line-height: 2;
    color: #bbb;
}

.indent {
    padding-left: 25px;
}

.indent2 {
    padding-left: 50px;
}

.indent3 {
    padding-left: 75px;
}

.purple {
    color: #c084fc;
}

.green {
    color: #86efac;
}

.blue {
    color: #60a5fa;
}

.response {
    margin: 0 20px 20px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #09090e;
    padding: 15px;
}

.response-title {
    display: flex;
    justify-content: space-between;
    color: #777;
    font-size: 10px;
    margin-bottom: 10px;
}

.status-code {
    color: var(--green);
}

.response pre {
    color: #aaa;
    font-size: 11px;
    line-height: 1.7;
}

.features-section,
.api-preview {
    padding: 100px 7%;
}

.section-heading {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 50px;
}

.section-heading > span {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
}

.section-heading h2 {
    font-size: 38px;
    margin: 12px 0;
    letter-spacing: -1px;
}

.section-heading p {
    color: var(--muted);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.feature-card,
.api-card {
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: 14px;
    padding: 24px;
    transition: .25s;
}

.feature-card:hover,
.api-card:hover {
    border-color: #373747;
    background: var(--card-hover);
    transform: translateY(-3px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: rgba(139,92,246,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 15px;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--muted);
    line-height: 1.7;
    font-size: 13px;
}

.api-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.api-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.api-icon,
.stat-icon {
    width: 43px;
    height: 43px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.purple-bg {
    background: rgba(139,92,246,.13);
    color: #a78bfa;
}

.blue-bg {
    background: rgba(59,130,246,.13);
    color: #60a5fa;
}

.green-bg {
    background: rgba(34,197,94,.13);
    color: #4ade80;
}

.orange-bg {
    background: rgba(245,158,11,.13);
    color: #fbbf24;
}

.red-bg {
    background: rgba(239,68,68,.13);
    color: #f87171;
}

.pink-bg {
    background: rgba(236,72,153,.13);
    color: #f472b6;
}

.api-status {
    font-size: 10px;
    color: var(--green);
}

.api-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.api-card p {
    font-size: 13px;
    color: var(--muted);
    min-height: 40px;
    line-height: 1.6;
}

.api-card code {
    display: block;
    margin: 20px 0;
    padding: 10px;
    border-radius: 7px;
    background: #09090e;
    border: 1px solid var(--border);
    color: #a78bfa;
    font-size: 11px;
}

.api-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.api-footer span {
    color: var(--green);
    font-size: 10px;
    font-weight: 700;
}

.api-footer a,
.api-footer button {
    background: none;
    border: 0;
    color: #aaa;
    font-size: 12px;
}

.api-footer a:hover,
.api-footer button:hover {
    color: white;
}

.cta {
    margin: 40px 7% 100px;
    padding: 50px;
    border: 1px solid var(--border);
    border-radius: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background:
        radial-gradient(circle at 20% 50%, rgba(139,92,246,.12), transparent 40%),
        var(--card);
}

.cta span {
    font-size: 10px;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 2px;
}

.cta h2 {
    margin: 10px 0;
    font-size: 28px;
}

.cta p {
    color: var(--muted);
    font-size: 13px;
}

footer {
    border-top: 1px solid var(--border);
    padding: 30px 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer p {
    color: #666;
    font-size: 12px;
}

/* AUTH */

.auth-body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 0%, rgba(139,92,246,.13), transparent 35%),
        var(--bg);
}

.auth-wrapper {
    width: 100%;
    max-width: 440px;
    padding: 45px 20px;
}

.auth-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 35px;
}

.auth-box {
    background: rgba(17,17,26,.85);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 25px 70px rgba(0,0,0,.3);
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139,92,246,.1);
    border-radius: 13px;
    margin: 0 auto 17px;
}

.auth-header h1 {
    font-size: 23px;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--muted);
    font-size: 13px;
}

.input-group {
    margin-bottom: 18px;
}

.input-group label {
    display: block;
    color: #bbb;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
}

.input-group input,
.api-tools input,
.api-tools select,
.panel-header select {
    width: 100%;
    background: #09090f;
    border: 1px solid var(--border);
    color: white;
    padding: 12px 13px;
    border-radius: 8px;
    outline: none;
    font-size: 13px;
}

.input-group input:focus,
.api-tools input:focus,
.api-tools select:focus {
    border-color: var(--primary);
}

.password-input {
    position: relative;
}

.password-input input {
    padding-right: 45px;
}

.password-input button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 42px;
    border: 0;
    background: transparent;
    color: #777;
}

.label-row {
    display: flex !important;
    justify-content: space-between;
}

.label-row a {
    color: var(--primary);
    font-size: 11px;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888;
    font-size: 11px;
    margin-bottom: 20px;
}

.checkbox-row input {
    accent-color: var(--primary);
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 25px 0;
    border-top: 1px solid var(--border);
}

.auth-divider span {
    position: relative;
    top: -8px;
    background: var(--card);
    padding: 0 10px;
    color: #555;
    font-size: 10px;
}

.auth-switch {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
}

.auth-switch a {
    color: var(--primary);
    font-weight: 600;
}

.auth-footer {
    text-align: center;
    color: #555;
    font-size: 11px;
    margin-top: 25px;
}

/* DASHBOARD */

.dashboard-body {
    background: #09090e;
}

.sidebar {
    width: 240px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    border-right: 1px solid var(--border);
    background: #0b0b11;
    display: flex;
    flex-direction: column;
    z-index: 200;
}

.sidebar-logo {
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

.sidebar-menu {
    padding: 25px 13px;
    flex: 1;
}

.menu-title {
    display: block;
    font-size: 9px;
    letter-spacing: 1.5px;
    color: #4f4f5c;
    margin: 15px 12px 9px;
}

.side-link {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 0;
    background: transparent;
    color: #777;
    padding: 11px 12px;
    border-radius: 8px;
    font-size: 12px;
    margin-bottom: 3px;
    text-align: left;
}

.side-link:hover,
.side-link.active {
    color: white;
    background: rgba(139,92,246,.1);
}

.side-link.active {
    color: #a78bfa;
}

.sidebar-bottom {
    padding: 15px;
    border-top: 1px solid var(--border);
}

.logout-btn {
    margin: 0;
}

.dashboard-main {
    margin-left: 240px;
    min-height: 100vh;
}

.dashboard-header {
    height: 85px;
    padding: 0 35px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(9,9,14,.8);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.dashboard-header h1 {
    font-size: 20px;
    margin-bottom: 4px;
}

.dashboard-header p {
    color: #666;
    font-size: 11px;
}

.header-user {
    display: flex;
    gap: 15px;
    align-items: center;
}

.notification {
    color: #777;
    font-size: 20px;
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.mobile-menu {
    display: none;
    background: none;
    border: 0;
    color: white;
    font-size: 20px;
}

.dashboard-content {
    padding: 30px 35px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.stat-card span {
    display: block;
    color: #777;
    font-size: 10px;
    margin-bottom: 5px;
}

.stat-card strong {
    display: block;
    font-size: 21px;
    margin-bottom: 5px;
}

.stat-card small {
    color: var(--green);
    font-size: 9px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 14px;
    margin-top: 14px;
}

.panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 23px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h2 {
    font-size: 15px;
    margin-bottom: 5px;
}

.panel-header p {
    font-size: 10px;
    color: #666;
}

.panel-header select {
    width: auto;
    padding: 8px 10px;
    font-size: 10px;
}

.chart {
    height: 300px;
    display: flex;
    margin-top: 25px;
}

.chart-y {
    width: 45px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 35px;
}

.chart-y span {
    color: #555;
    font-size: 9px;
}

.chart-area {
    position: relative;
    flex: 1;
    height: 100%;
}

.grid-line {
    position: absolute;
    width: 100%;
    border-top: 1px dashed #20202a;
}

.line1 { top: 0; }
.line2 { top: 20%; }
.line3 { top: 40%; }
.line4 { top: 60%; }

.chart-area svg {
    width: 100%;
    height: calc(100% - 35px);
    position: relative;
    z-index: 2;
}

.chart-x {
    display: flex;
    justify-content: space-between;
    color: #555;
    font-size: 9px;
}

.usage-panel {
    display: flex;
    flex-direction: column;
}

.usage-circle {
    --usage-percent: 0%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 30px auto 25px;
    background: conic-gradient(#8b5cf6 var(--usage-percent), #22222f var(--usage-percent));
    display: flex;
    align-items: center;
    justify-content: center;
}

.usage-circle::before {
    content: "";
    position: absolute;
}

.usage-circle > div {
    width: 118px;
    height: 118px;
    background: var(--card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.usage-circle strong {
    font-size: 21px;
}

.usage-circle span {
    color: #666;
    font-size: 10px;
}

.usage-info {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 18px;
    margin-bottom: 20px;
}

.usage-info span {
    display: block;
    color: #666;
    font-size: 9px;
    margin-bottom: 5px;
}

.usage-info strong {
    font-size: 12px;
}

.api-section {
    margin-top: 45px;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
}

.section-title-row h2 {
    font-size: 17px;
    margin-bottom: 5px;
}

.section-title-row p {
    font-size: 10px;
    color: #666;
}

.api-tools {
    display: flex;
    gap: 8px;
}

.api-tools input {
    width: 200px;
}

.api-tools select {
    width: 150px;
}

.dashboard-api-grid {
    grid-template-columns: repeat(3, 1fr);
}

.api-key-section {
    margin-top: 45px;
    margin-bottom: 50px;
}

.api-key-panel {
    max-width: 100%;
}

.key-active {
    color: var(--green);
    font-size: 10px;
}

.api-key-box {
    margin-top: 20px;
    display: flex;
    align-items: center;
    background: #09090f;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.api-key-box code {
    flex: 1;
    padding: 14px;
    color: #a78bfa;
    font-size: 11px;
}

.api-key-box button {
    height: 100%;
    padding: 0 18px;
    background: #181824;
    border: 0;
    color: #aaa;
    font-size: 11px;
    align-self: stretch;
}

.api-key-box button:hover {
    color: white;
}

.warning-box {
    margin-top: 12px;
    padding: 12px;
    border-radius: 7px;
    background: rgba(245,158,11,.06);
    border: 1px solid rgba(245,158,11,.12);
    color: #a88b50;
    font-size: 10px;
}

/* SETTINGS */

.settings-section {
    margin-top: 45px;
    margin-bottom: 50px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.settings-panel {
    min-width: 0;
}

.settings-header {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 22px;
}

.settings-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 17px;
}

.settings-header h3 {
    font-size: 14px;
    margin-bottom: 4px;
}

.settings-header p {
    color: #666;
    font-size: 10px;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.setting-item {
    min-width: 0;
    min-height: 48px;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #0d0d14;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.setting-item > div {
    min-width: 0;
}

.setting-item strong {
    display: block;
    font-size: 11px;
    margin-bottom: 4px;
}

.setting-item span {
    display: block;
    color: #666;
    font-size: 9px;
    line-height: 1.5;
}

.setting-action {
    color: var(--primary);
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.setting-action:hover {
    color: #a78bfa;
}

.setting-select {
    width: 100px;
    flex-shrink: 0;
    background: #09090f;
    border: 1px solid var(--border);
    color: white;
    padding: 8px 10px;
    border-radius: 7px;
    outline: none;
    font-size: 10px;
}

.setting-select:focus {
    border-color: var(--primary);
}

.settings-form .btn {
    align-self: flex-start;
    padding: 9px 13px;
    font-size: 10px;
}

.danger-panel {
    border-color: rgba(239,68,68,.2);
}

.danger-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 13px;
    border: 1px solid rgba(239,68,68,.15);
    border-radius: 8px;
    background: rgba(239,68,68,.04);
}

.danger-content > div {
    min-width: 0;
}

.danger-content strong {
    display: block;
    font-size: 11px;
    margin-bottom: 4px;
}

.danger-content span {
    display: block;
    color: #666;
    font-size: 9px;
    line-height: 1.5;
}

.danger-btn {
    flex-shrink: 0;
    color: #f87171;
    background: rgba(239,68,68,.08);
    border: 1px solid rgba(239,68,68,.2);
    white-space: nowrap;
}

.danger-btn:hover {
    background: rgba(239,68,68,.15);
    border-color: rgba(239,68,68,.35);
}

.usage-circle {
    position: relative;
}

/* MODAL */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.75);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.api-modal {
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    background: #101019;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    position: relative;
    animation: modalIn .2s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(15px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    right: 18px;
    top: 15px;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: #777;
    font-size: 25px;
}

.modal-close:hover {
    color: white;
}

.modal-api-icon {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    background: rgba(139,92,246,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
}

.modal-header h2 {
    margin: 8px 0;
    font-size: 23px;
}

.modal-header p {
    color: #777;
    font-size: 12px;
    margin-bottom: 20px;
}

.modal-endpoint {
    display: flex;
    align-items: center;
    background: #08080d;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 25px;
}

.modal-endpoint span {
    padding: 13px;
    color: var(--green);
    font-size: 10px;
    font-weight: 700;
}

.modal-endpoint code {
    flex: 1;
    color: #aaa;
    font-size: 11px;
}

.modal-endpoint button {
    height: 100%;
    padding: 0 13px;
    background: #171721;
    color: #aaa;
    border: 0;
    align-self: stretch;
    font-size: 10px;
}

.modal-content h3 {
    font-size: 12px;
    margin: 20px 0 10px;
}

.modal-code {
    position: relative;
    background: #08080d;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.modal-code pre {
    padding: 16px;
    color: #aaa;
    font-family: monospace;
    font-size: 10px;
    line-height: 1.7;
    white-space: pre-wrap;
}

.modal-code button {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #1b1b27;
    color: #aaa;
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 5px 8px;
    font-size: 9px;
}

/* ACCOUNT MODAL (change password / delete account) */

.account-modal {
    max-width: 440px;
}

.account-modal.danger {
    border-color: rgba(239,68,68,.45);
}

.account-modal.danger .modal-header h2 {
    color: #ef4444;
}

.account-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 16px;
}

.account-field label {
    font-size: 11px;
    color: #888;
    font-weight: 600;
}

.account-field input {
    background: #08080d;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
    color: #eee;
    font-size: 13px;
    font-family: inherit;
    width: 100%;
}

.account-field input:focus {
    outline: none;
    border-color: var(--primary);
}

.account-error {
    color: #ef4444;
    font-size: 12px;
    min-height: 16px;
    margin: 0 0 12px;
}

.account-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.account-actions .btn {
    flex: 1;
}

button:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* RESPONSIVE */

@media (max-width: 1000px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-card {
        max-width: 700px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .settings-grid {
    grid-template-columns: 1fr;
}
}

@media (max-width: 750px) {
    .navbar {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 70px 20px;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .hero-card {
        transform: none;
    }

    .features-section,
    .api-preview {
        padding: 70px 20px;
    }

    .feature-grid,
    .api-grid {
        grid-template-columns: 1fr;
    }

    .cta {
        margin: 20px 20px 70px;
        padding: 30px;
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    footer {
        padding: 25px 20px;
        flex-direction: column;
        gap: 15px;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: .25s;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .dashboard-main {
        margin-left: 0;
    }

    .dashboard-header {
        padding: 0 20px;
    }

    .mobile-menu {
        display: block;
        margin-right: 15px;
    }

    .dashboard-header > div:first-of-type {
        margin-right: auto;
    }

    .dashboard-content {
        padding: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .section-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .api-tools {
        width: 100%;
    }

    .api-tools input,
    .api-tools select {
        flex: 1;
        width: auto;
    }

    .dashboard-api-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 25px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .settings-grid {
    grid-template-columns: 1fr;
}

.setting-item {
    align-items: flex-start;
}

.setting-select {
    width: 90px;
}

.danger-content {
    flex-direction: column;
    align-items: flex-start;
}

.danger-btn {
    width: 100%;
}
}

@media (max-width: 480px) {
    .nav-actions .btn-ghost {
        display: none;
    }

    .auth-box {
        padding: 25px 20px;
    }

    .chart {
        height: 240px;
    }

    .panel {
        padding: 18px;
    }

    .modal-overlay {
        padding: 10px;
    }

    .api-modal {
        padding: 22px;
    }
    
}