:root {
    --bg-primary: #121212;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #252525;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --accent: #ff5500;
    --accent-hover: #ff7033;
    --border-color: #333333;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.top-bar {
    background-color: var(--bg-tertiary);
    padding: 0.2rem 0;
}

.top-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.current-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.top-bar-actions {
    display: flex;
    gap: 1rem;
}

.top-bar-btn {
    padding: 0.2rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.top-bar-btn.login {
    background-color: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.top-bar-btn.login:hover {
    background-color: var(--accent);
    color: white;
}

.top-bar-btn.register {
    background-color: var(--accent);
    border: 1px solid var(--accent);
    color: white;
}

.top-bar-btn.register:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
}

.user-greeting {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-right: 0.5rem;
	padding-top: 0.5rem;
}

.top-bar-btn.logout {
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    background-color: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-secondary);
}

.top-bar-btn.logout:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.top-bar-btn.admin {
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    background-color: #ff5500;
    border: 1px solid #ff5500;
    color: white;
}

.top-bar-btn.admin:hover {
    background-color: #ff7033;
    border-color: #ff7033;
}

.admin-dropdown {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    z-index: 2000;
	top: 0.3rem;
}

.admin-dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

.admin-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: 150px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 2000;
}

.admin-dropdown:hover .admin-menu {
    display: block;
}

.admin-menu-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.admin-menu-item:hover {
    background-color: var(--bg-tertiary);
    color: var(--accent);
}

.main-header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.logo img {
	margin-top: 0.5em;
    height: 25px;
    width: auto;
    vertical-align: middle;
}

.logo-text {
    color: var(--text-secondary);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
	padding-left: 0.5em;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: background-color 0.3s;
}

.main-nav {
    flex: 1;
	padding-left: 3em;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-list a {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

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

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20vh;
    z-index: 2000;
}

.search-overlay.active {
    display: flex;
}

.search-container {
    width: 100%;
    max-width: 600px;
    padding: 0 1rem;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.25rem;
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    outline: none;
}

.search-input:focus {
    border-color: var(--accent);
}

.search-close {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
}

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

.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 200px);
}



.section-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    border-left: 4px solid var(--accent);
    padding-left: 1rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.featured-news .news-grid {
	cursor: pointer;
    grid-template-columns: repeat(2, 1fr);
}

.news-card {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: #ff6600;
}

.news-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-card.featured {
    grid-column: span 1;
}

.news-card.featured-row {
    grid-column: span 1;
}

.featured-news .news-grid:has(.featured-row) {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.featured-news .news-grid:has(.featured-row) .news-card.featured:first-child,
.featured-news .news-grid:has(.featured-row) .news-card.featured:nth-child(2) {
    grid-column: span 2;
    min-height: 450px;
}

.featured-news .news-grid:has(.featured-row) .news-card.featured:first-child .news-image,
.featured-news .news-grid:has(.featured-row) .news-card.featured:nth-child(2) .news-image {
    height: 18.75rem;
}

.featured-news .news-grid:has(.featured-row) .news-card.featured:first-child .news-content,
.featured-news .news-grid:has(.featured-row) .news-card.featured:nth-child(2) .news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-news .news-grid:has(.featured-row) .news-card.featured-row {
    grid-column: span 1;
}

.news-card.featured-row .news-image {
    height: 10rem;
}

.news-card.featured-row h3 {
    font-size: 1rem;
}

.news-card.featured-row .news-content {
    padding: 1rem;
}

.news-card.featured-row p {
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card .news-image {
    height: 12.5rem;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.news-card.featured .news-image {
    height: 18.75rem;
}

.news-content {
    padding: 1.5rem;
    flex: 1;
}

.news-category {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.news-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.news-card.featured h3 {
    font-size: 1.5rem;
}

.news-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.news-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    align-items: center;
}

.news-views,
.news-comments {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.news-views svg,
.news-comments svg {
    opacity: 0.7;
}

.news-views:hover,
.news-comments:hover {
    color: var(--accent);
}

.news-admin-buttons {
	position: relative;
	float: right;
}

.admin-btn {
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.edit-btn {
    background-color: #3a7bd5;
    color: white;
}

.edit-btn:hover {
    background-color: #2d5fb3;
}

.delete-btn {
    background-color: #dc3545;
    color: white;
}

.delete-btn:hover {
    background-color: #c82333;
}

.news-card-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card-wrapper .news-admin-buttons {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    padding: 0.75rem 1.5rem;
    border-top: 1px solid var(--border-color);
    justify-content: center;
}

.news-item-wrapper {
    position: relative;
}

.news-item-wrapper .news-admin-buttons {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-item {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.news-item:hover {
    border-color: var(--accent);
}

.news-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.news-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.news-item {
    display: flex;
    gap: 1rem;
}

.news-item-image {
    width: 160px;
    height: 120px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 6px;
    flex-shrink: 0;
}

.news-item-content {
    flex: 1;
}

.category-header {
    text-align: center;
    padding: 3rem 2rem;
    background-color: var(--bg-secondary);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.category-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.category-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.main-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
}

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

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    padding: 0.5rem 1rem;
    background-color: var(--bg-tertiary);
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.footer-bottom {
    text-align: center;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }

    .mobile-menu-btn {
        display: block;
    }

    .main-nav {
        display: none;
        width: 100%;
        order: 3;
    }

    .main-nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        padding: 1rem 0;
        gap: 0;
    }

    .nav-list li {
        padding: 0.5rem 0;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .news-card.featured {
        grid-column: 1;
    }

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

    .footer-container {
        grid-template-columns: 1fr;
    }

    .logo img {
        height: 20px;
    }

    .logo-text {
        font-size: 0.65rem;
    }

    .top-bar-content {
        padding: 0.5rem 1rem;
    }

    .top-bar-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }

    .user-greeting {
        font-size: 0.7rem;
    }
}

.about-content,
.contact-content {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.about-content p,
.contact-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

.create-user-page {
    display: flex;
    justify-content: center;
    padding: 3rem 2rem;
}

.create-user-container {
    width: 100%;
    max-width: 560px;
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.brand-icon {
	position: relative;
	display: inline;
    margin-bottom: 1.5rem;
	top: 0.5rem;
	padding-right: 0.4rem;
}

.form-header h1 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.form-header .subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.form-message {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
	text-align: center;
}

.form-message.success {
    background-color: rgba(34, 197, 94, 0.15);
    border: 1px solid #22c55e;
    color: #22c55e;
}

.form-message.error {
    background-color: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    color: #ef4444;
}

.forgot-link {
    color: #ff5500;
    font-size: 0.85rem;
    text-decoration: none;
    margin-left: auto;
}

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

.register-form {
    background-color: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.create-news-page {
    padding: 2rem;
}

.create-news-container {
    max-width: 800px;
    margin: 0 auto;
}

.create-news-form {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 1rem;
}

.form-section h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.form-section .form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="url"],
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background-color: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff5500;
    box-shadow: 0 0 0 3px rgba(255, 85, 0, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.input-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.checkbox-group {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.checkbox-group .checkbox-label {
    display: inline-flex;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.checkbox-label .checkmark {
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    vertical-align: middle;
}

.checkbox-label input:checked + .checkmark {
    background-color: #ff5500;
    border-color: #ff5500;
}

.checkbox-label input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-text {
    display: inline;
    vertical-align: middle;
	padding-left: 0.3em;
}

.checkbox-text a {
    color: #ff5500;
    text-decoration: none;
}

.checkbox-text a:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background-color: #ff5500;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.submit-btn:hover {
    background-color: #ff7033;
    transform: translateY(-2px);
}

.upload-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--bg-tertiary);
    border: 2px solid var(--accent);
    border-radius: 6px;
    color: var(--accent);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.upload-btn:hover {
    background-color: var(--accent);
    color: white;
}

.uploaded-info {
    margin-top: 1rem;
    padding: 1rem;
    background-color: rgba(34, 197, 94, 0.15);
    border: 1px solid #22c55e;
    border-radius: 8px;
    color: #22c55e;
}

.uploaded-info p {
    margin: 0;
}

.uploaded-images-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.image-tile {
    cursor: pointer;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    background-color: var(--bg-secondary);
}

.image-tile:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.image-tile.selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(255, 85, 0, 0.3);
}

.tile-thumbnail {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.tile-info {
    padding: 0.5rem;
    text-align: center;
}

.tile-id {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.tile-source {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.form-footer a {
    color: #ff5500;
    font-weight: 600;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

.benefits-section {
    margin-top: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 85, 0, 0.08) 0%, rgba(255, 85, 0, 0.03) 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 85, 0, 0.2);
}

.benefits-section h3 {
    text-align: center;
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.legal-popup {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.legal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-header h2 {
    color: var(--text-primary);
    font-size: 1.75rem;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

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

.legal-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

.legal-content .last-updated {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.legal-content h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content p {
    margin-bottom: 1rem;
}

.legal-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content strong {
    color: var(--text-primary);
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background-color: var(--bg-secondary);
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.modal-header h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

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

.modal-content {
    padding: 2rem;
    overflow-y: auto;
    color: var(--text-secondary);
    line-height: 1.7;
}

.modal-content .last-updated {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.modal-content h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.modal-content p {
    margin-bottom: 0.75rem;
}

.modal-content ul {
    margin-bottom: 1rem;
    padding-left: 1.25rem;
}

.modal-content li {
    margin-bottom: 0.35rem;
}

.modal-content strong {
    color: var(--text-primary);
}

.activation-success,
.activation-error {
    text-align: center;
    padding: 3rem 2rem;
    background-color: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.success-icon,
.error-icon {
    margin-bottom: 1.5rem;
}

.activation-success h1,
.activation-error h1 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.activation-success .subtitle,
.activation-error .subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.login-btn,
.retry-btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background-color: #ff5500;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.login-btn:hover,
.retry-btn:hover {
    background-color: #ff7033;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }

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

    .register-form {
        padding: 1.5rem;
    }
}