:root {
    --bg: #18181b;
    --bg-card: #27272a;
    --white: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #52525b;
    --gray-700: #3f3f46;
    --gray-800: #27272a;
    --accent: #06b6d4;
    --accent-hover: #22d3ee;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Sans', sans-serif;
    background: var(--bg);
    color: var(--white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    border: 1px solid transparent;
}

.btn-solid {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

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

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--gray-600);
}

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

.btn-ghost {
    background: transparent;
    color: var(--gray-400);
    border-color: transparent;
}

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

.btn-block {
    width: 100%;
}

.hidden {
    display: none !important;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--gray-700);
}

.nav-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.9rem;
    color: var(--gray-400);
    transition: color 0.15s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.nav-actions {
    display: flex;
    gap: 8px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
}

.page {
    flex: 1;
    padding: 80px 0;
}

.page .container {
    max-width: 600px;
}

.label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 12px;
}

.page h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 16px;
}

.desc {
    font-size: 1.1rem;
    color: var(--gray-400);
    margin-bottom: 32px;
}

.buttons {
    display: flex;
    gap: 12px;
}

.stats {
    display: flex;
    gap: 48px;
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-700);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.stat span {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature {
    padding: 24px;
    border: 1px solid var(--gray-700);
    border-radius: 8px;
}

.feature h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--accent);
}

.feature p {
    font-size: 0.9rem;
    color: var(--gray-400);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 40px;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--gray-700);
    border-radius: 8px;
    padding: 24px;
}

.price-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.15);
}

.price-header {
    margin-bottom: 20px;
}

.price-header h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--gray-500);
}

.price-list {
    list-style: none;
    margin-bottom: 24px;
}

.price-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-700);
    font-size: 0.9rem;
    color: var(--gray-400);
}

.price-list li:last-child {
    border-bottom: none;
}

.price-list strong {
    color: var(--white);
}

.footer {
    padding: 48px 0;
    border-top: 1px solid var(--gray-700);
    margin-top: auto;
}

.footer-auth {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.footer-brand .logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--gray-500);
    transition: color 0.15s;
}

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

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--gray-700);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--gray-600);
}

.auth-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.auth-box {
    width: 100%;
    max-width: 380px;
    position: relative;
}

.auth-box h1 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.close-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: 4px;
    display: flex;
    transition: color 0.15s;
}

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

.tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--bg-card);
    border-radius: 6px;
    margin: 20px 0;
}

.tab {
    flex: 1;
    padding: 10px;
    background: none;
    border: none;
    color: var(--gray-500);
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 4px;
}

.tab.active {
    background: var(--accent);
    color: #000;
    font-weight: 500;
}

.auth-box input {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--gray-700);
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 12px;
    border-radius: 6px;
}

.auth-box input:focus {
    outline: none;
    border-color: var(--accent);
}

.auth-box input::placeholder {
    color: var(--gray-500);
}

.link {
    display: block;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 16px;
}

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

.or {
    text-align: center;
    margin: 16px 0;
    color: var(--gray-500);
    font-size: 0.85rem;
    position: relative;
}

.or::before,
.or::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background: var(--gray-700);
}

.or::before { left: 0; }
.or::after { right: 0; }

.message {
    margin-top: 16px;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    text-align: center;
}

.message.success {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--accent);
}

.message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 24px;
}

.modal-box {
    background: var(--bg-card);
    border: 1px solid var(--gray-700);
    border-radius: 12px;
    padding: 32px;
    width: 100%;
    max-width: 380px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: var(--gray-500);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--accent);
}

.modal-box h2 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.modal-subtitle {
    color: var(--gray-400);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.modal-subtitle span {
    color: var(--accent);
    font-weight: 500;
}

.summary {
    background: var(--bg);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 16px;
}

.summary div {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.9rem;
}

.summary span {
    color: var(--gray-400);
}

.summary strong {
    color: var(--accent);
}

.dashboard-page {
    flex: 1;
    padding: 80px 0 60px;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.dash-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 4px;
}

.dash-header h1 {
    font-size: 1.5rem;
}

.loading {
    padding: 80px 0;
    display: flex;
    justify-content: center;
}

.loading-bar {
    width: 160px;
    height: 4px;
    background: var(--gray-700);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 40%;
    background: var(--accent);
    animation: load 1s ease-in-out infinite;
}

@keyframes load {
    0% { left: -40%; }
    100% { left: 100%; }
}

.empty-state {
    text-align: center;
    padding: 60px 24px;
    background: var(--bg-card);
    border: 1px solid var(--gray-700);
    border-radius: 8px;
}

.empty-state h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--gray-400);
    margin-bottom: 20px;
}

.server-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.server-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--gray-700);
    border-radius: 8px;
}

.server-icon {
    color: var(--accent);
}

.server-info {
    flex: 1;
}

.server-info h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.server-info span {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.server-meta {
    text-align: right;
}

.server-meta .price {
    font-size: 1rem;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    margin-top: 4px;
    justify-content: flex-end;
    color: var(--gray-400);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-dot.active {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

.status-dot.expired {
    background: #f87171;
}

.expiry {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 4px;
    display: block;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 16px 24px;
        gap: 0;
        border-bottom: 1px solid var(--gray-700);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid var(--gray-700);
    }

    .nav-actions {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .dash-header {
        flex-direction: column;
        gap: 16px;
    }

    .server-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .server-meta {
        text-align: left;
    }

    .server-status {
        justify-content: flex-start;
    }
}
