:root {
    --primary: #111111;
    --primary-dark: #000000;
    --primary-light: #2a2a2a;
    --secondary: #333333;
    --accent: #555555;
    --success: #555555;
    --warning: #888888;
    --danger: #999999;
    --dark: #1a1a1a;
    --darker: #000000;
    --light: #f9fafb;
    --lighter: #ffffff;
    --gray: #666666;
    --gray-dark: #444444;
    --gray-light: #eeeeee;
    
    --gradient: linear-gradient(135deg, #111111 0%, #333333 100%);
    --gradient-accent: linear-gradient(135deg, #2a2a2a 0%, #444444 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.01) 100%);
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.08);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.04);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-3xl: 32px;
    --radius-full: 9999px;
    
    --transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
    
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 80px;
}

[data-theme="light"] {
    --bg: #f9fafb;
    --text: #1a1a1a;
    --text-secondary: #555555;
    --text-tertiary: #888888;
    --card-bg: #ffffff;
    --sidebar-bg: rgba(255, 255, 255, 0.85);
    --topbar-bg: rgba(255, 255, 255, 0.9);
    --border: rgba(0, 0, 0, 0.06);
    --hover: rgba(0, 0, 0, 0.03);
    --glass: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.3);
    --nav-active-bg: #111111;
    --nav-active-text: white;
}

[data-theme="dark"] {
    --bg: #121212;
    --text: #f0f0f0;
    --text-secondary: #bbbbbb;
    --text-tertiary: #888888;
    --card-bg: #1e1e1e;
    --sidebar-bg: rgba(26, 26, 26, 0.85);
    --topbar-bg: rgba(26, 26, 26, 0.9);
    --border: rgba(255, 255, 255, 0.06);
    --hover: rgba(255, 255, 255, 0.03);
    --glass: rgba(30, 30, 30, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);
    --nav-active-bg: #2a2a2a;
    --nav-active-text: white;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    background-image: radial-gradient(circle at 25% 40%, rgba(0, 0, 0, 0.008) 0%, transparent 50%),
                      repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.006) 0px, rgba(0, 0, 0, 0.006) 2px, transparent 2px, transparent 8px);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Glass Card */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 0.5px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    transition: var(--transition);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow-glass);
}

[data-theme="dark"] .glass-card:hover {
    background: rgba(40, 40, 40, 0.9);
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Header */
.core-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--topbar-bg);
    backdrop-filter: blur(20px);
    border-bottom: 0.5px solid var(--border);
    padding: 16px 0;
}

.core-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
}

.logo img {
    height: 32px;
}

.core-nav {
    display: flex;
    gap: 32px;
}

.core-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.core-nav a:hover {
    color: var(--text);
}

.core-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Main Content */
.core-main {
    flex: 1;
    padding: 60px 0;
}

/* Footer */
.core-footer {
    background: var(--card-bg);
    border-top: 0.5px solid var(--border);
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text);
}

.footer-col p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--text);
}

.footer-bottom {
    border-top: 0.5px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-tertiary);
    font-size: 0.8rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text);
}

/* Legal Pages */
.legal-page, .security-page, .about-page, .report-page {
    padding: 0;
}

.legal-header, .security-header, .about-header, .page-header {
    text-align: center;
    margin-bottom: 48px;
}

.legal-header h1, .security-header h1, .about-header h1, .page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #1a1a1a 0%, #444444 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

[data-theme="dark"] .legal-header h1,
[data-theme="dark"] .security-header h1,
[data-theme="dark"] .about-header h1,
[data-theme="dark"] .page-header h1 {
    background: linear-gradient(135deg, #f0f0f0 0%, #aaaaaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.legal-header p, .security-header p, .about-header p, .page-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.legal-content, .security-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px;
}

.legal-content section, .security-content section {
    margin-bottom: 40px;
}

.legal-content h2, .security-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

.legal-content h3, .security-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 24px 0 16px;
    color: var(--text);
}

.legal-content p, .security-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.legal-content ul, .security-content ul {
    padding-left: 24px;
    margin-bottom: 20px;
}

.legal-content li, .security-content li {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.legal-contact, .security-contact {
    margin-top: 48px;
    padding: 24px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: var(--radius-xl);
    text-align: center;
}

/* Security Features */
.security-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.feature-card {
    padding: 32px;
    text-align: center;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 28px;
    color: #444444;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 32px 0;
}

.tip-card {
    padding: 24px;
    text-align: center;
}

.tip-card i {
    font-size: 28px;
    color: #444444;
    margin-bottom: 16px;
}

.tip-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.tip-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* About Page */
.about-story {
    display: flex;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
    padding: 48px;
}

.story-content {
    flex: 1;
}

.story-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.story-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.story-image {
    flex: 1;
    border-radius: var(--radius-2xl);
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: auto;
}

.about-mission {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}

.mission-card {
    padding: 32px;
}

.mission-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.mission-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.mission-card ul {
    padding-left: 20px;
}

.mission-card li {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.about-team {
    text-align: center;
    margin-bottom: 60px;
}

.about-team h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.about-team > p {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.team-member {
    padding: 32px 24px;
    text-align: center;
}

.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 2px solid #444444;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.team-member .position {
    color: var(--text-tertiary);
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.team-member .bio {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.about-numbers {
    text-align: center;
    margin-bottom: 60px;
}

.about-numbers h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 40px;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.number-card {
    padding: 32px;
    text-align: center;
}

.number-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

.number-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.about-contact {
    text-align: center;
    padding: 48px;
}

.about-contact h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.about-contact p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--gradient);
    color: white;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Report Page */
.report-form-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
}

.report-form {
    padding: 40px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    color: var(--text);
    transition: var(--transition);
    font-family: var(--font-sans);
}

.form-control:focus {
    outline: none;
    border-color: #333333;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-text {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.submit-button {
    width: 100%;
    padding: 14px 24px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.report-info {
    padding: 32px;
    align-self: start;
    position: sticky;
    top: 100px;
}

.report-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-info p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.report-info ul {
    padding-left: 20px;
    margin-bottom: 24px;
}

.report-info li {
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.urgent-help {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.urgent-help p {
    margin-bottom: 16px;
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.settings-item-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.settings-item-info p {
    font-size: 0.8rem;
    margin-bottom: 0;
}

.btn-secondary {
    padding: 8px 16px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--hover);
    border-color: #333333;
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .security-features,
    .tips-grid,
    .about-mission,
    .team-grid,
    .numbers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .core-nav {
        display: none;
    }
    
    .core-menu-toggle {
        display: block;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .legal-content, .security-content {
        padding: 32px;
    }
    
    .security-features,
    .tips-grid,
    .about-mission,
    .team-grid,
    .numbers-grid {
        grid-template-columns: 1fr;
    }
    
    .about-story {
        flex-direction: column;
        padding: 32px;
    }
    
    .story-image {
        order: -1;
    }
    
    .report-form-container {
        grid-template-columns: 1fr;
    }
    
    .report-info {
        position: static;
    }
    
    .legal-header h1, .security-header h1, .about-header h1, .page-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .legal-content, .security-content {
        padding: 24px;
    }
    
    .feature-card, .mission-card, .team-member, .number-card {
        padding: 24px;
    }
}