:root {
    --bg-color: #F5F5F5;
    --surface-color: #FFFFFF;
    --border-color: #E0E0E0;
    --text-primary: #000000;
    --text-secondary: #666666;
    --text-muted: #999999;
    --accent-color: #00D632;
    --accent-hover: #00B82A;
    --error-color: #F44336;
    --warning-color: #FFA500;
    --success-color: #4CAF50;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --transition: all 0.3s ease;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #000000;
        --surface-color: #0a0a0a;
        --border-color: #1a1a1a;
        --text-primary: #FFFFFF;
        --text-secondary: #CCCCCC;
        --text-muted: #808080;
        --accent-color: #00D632;
        --accent-hover: #00F73A;
        --error-color: #FF5252;
        --warning-color: #FFB74D;
        --success-color: #66BB6A;
        --shadow: 0 4px 20px rgba(255, 255, 255, 0.05);
        --shadow-hover: 0 8px 32px rgba(255, 255, 255, 0.1);
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-color);
    transition: var(--transition);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: .9rem; }

p {
    color: var(--text-secondary);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-sm {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    /* min-height: calc(100vh - 120px); */
    padding: 60px 0px 0px 0px;
}

/* Header */
.header {
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 214, 50, 0.2);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav {
    display: flex;
    align-items: center;
    gap: .8rem;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 1px;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 0;
    /*-bottom: 2px solid transparent;*/
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
    text-decoration: none;
}

/* Cards */
.card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

/*.card:hover {
    transform: translateY(-2px);
}*/

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-color);
    color: black;
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: black;
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: black;
    text-decoration: none;
}

/* Status Indicators */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
    animation: pulse-dot 2s infinite;
    margin-left: 8px;
}

.status-dot.error {
    background: var(--error-color);
}

.status-dot.warning {
    background: var(--warning-color);
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* FAQ */
.faq-item {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(0, 214, 50, 0.1);
}

.faq-question {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    padding: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

.faq-question:hover {
    background-color: rgba(0, 214, 50, 0.05);
}

.faq-answer {
    padding: 0 1.25rem 1.25rem 1.25rem;
    color: var(--text-secondary);
    display: none;
}

.faq-answer.active {
    display: block;
}

.toggle-icon {
    color: var(--accent-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.toggle-icon.active {
    transform: rotate(180deg);
}

/* Contact Cards */
.contact-card {
    text-align: center;
    transition: var(--transition);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.contact-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    /*background: var(--surface-color);
    border-top: 1px solid var(--border-color);*/
    padding: 2rem 0;
    /* margin-top: 4rem; */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Status Grid */
.status-grid {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.status-item {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.2rem;
    text-align: center;
    transition: var(--transition);
    justify-content: space-between;
    display: flex;
}

.status-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(0, 214, 50, 0.1);
}

.status-label {
    font-weight: 600;
    color: var(--text-primary);
}

.status-value {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.status-value.error {
    color: var(--error-color);
}

.status-value.warning {
    color: var(--warning-color);
}

/* Loading spinner */
.loading {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* App Info */
.app-info {
    background: rgba(0, 214, 50, 0.1);
    border: 1px solid var(--accent-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.app-info h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

/* Terms of Service Page Styles */
.terms-section {
    margin-bottom: 2rem;
}

.section-badge {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: black;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 214, 50, 0.3);
}

.last-updated {
    /* background: var(--surface-color); */
    /* border: 1px solid var(--border-color); */
    /* border-left: 4px solid var(--accent-color); */
    /* padding: 1rem; */
    /* border-radius: var(--border-radius); */
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.highlight-box {
    background: linear-gradient(135deg, var(--surface-color), rgba(0, 214, 50, 0.05));
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
    position: relative;
}

.highlight-box p {
    margin: 0;
    color: var(--text-primary);
    font-weight: 500;
}

.highlight-box strong {
    color: var(--accent-color);
}

.terms-section h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.terms-section h3 {
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.terms-section h4 {
    color: var(--text-secondary);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.terms-section ul, .terms-section ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.terms-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.terms-section li strong {
    color: var(--primary-color);
}

.text-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.text-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Contact Info Box for Terms */
.contact-info {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info strong {
    color: var(--accent-color);
    font-weight: 600;
}

/* Responsive Design for Terms */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header-content {
        position: relative;
        padding: 0.75rem 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav {
        position: absolute;
        top: calc(100%);
        left: -1px;
        right: -1px;
        background: var(--surface-color);
        border: 1px solid var(--border-color);
        border-top: none;
        /* border-radius: 0 0 var(--border-radius) var(--border-radius); */
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 99;
    }

    .nav.active {
        max-height: 230px;
        top: calc(100% + 1px);
    }

    .nav-link {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .main-content {
        padding: 40px 0px 0px 0px;
    }

    .terms-section h2 {
        font-size: 1.3rem;
    }

    .terms-section h3 {
        font-size: 1.1rem;
    }

    .section-badge {
        font-size: 0.75rem;
        padding: 4px 12px;
    }

    .highlight-box {
        padding: 1rem;
    }

    .last-updated {
        padding: 0.8rem;
    }

    .contact-info {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 24px; /* 10px */
    }

    .header-content {
        padding: 0.5rem 0;
    }

    .logo-text {
        font-size: 1rem;
    }

    .mobile-menu-toggle {
        width: 22px;
        height: 16px;
    }

    .nav {
        left: -11px;
        right: -11px;
    }

    .nav-link {
        padding: 0.85rem 1rem;
        font-size: 0.9rem;
    }

    .main-content {
        padding: 30px 0px 0px 0px;
    }

    .status-item {
        padding: 1rem;
    }

    .status-label {
        font-size: 0.9rem;
    }

    .status-value {
        font-size: 0.8rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.m-0  { margin: 0; }
.p-0  { padding: 0; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-0 { margin-bottom: 0; }
.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; }
.flex-column { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.w-full { width: 100%; }
.h-full { height: 100%; }
