:root {
    --bg-color: #000000;
    --bg-gradient: linear-gradient(180deg, #000000 0%, #0a0a0a 100%);
    --card-bg: #111111;
    --card-border: #333333;
    --border-color: #333333;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent-color: #ffffff;
    --accent-gradient: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
    --error-color: #ff0000;
    --success-color: #00ff00;
    --warning-color: #ffaa00;
    --beta-color: #ff0000;
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.7);
    --glow: 0 0 40px rgba(255, 255, 255, 0.05);
}

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

body {
    background: var(--bg-gradient);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.logo-link:hover {
    opacity: 0.8;
}

.badge-beta {
    background: var(--beta-color);
    color: #ffffff;
    font-size: 0.65rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-top: 8px;
    border: none;
    display: inline-block;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

.logo h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -2px;
    color: #ffffff;
}

.logo h1 span {
    font-weight: 300;
    color: #888888;
}

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

.tagline-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto 0;
}

/* Main Cards */
main {
    flex: 1;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-lg), var(--glow);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    border-color: #555555;
    box-shadow: var(--shadow-lg), 0 0 60px rgba(255, 255, 255, 0.05);
}

/* Forms & Inputs */
textarea {
    width: 100%;
    height: 200px;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 16px;
    border-radius: 12px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    resize: none;
    margin-bottom: 20px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
    background: rgba(10, 10, 10, 0.8);
}

.file-upload-zone {
    border: 2px dashed var(--border-color);
    padding: 24px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.file-upload-zone:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #ffffff;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

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

.option-item label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

select, input[type="text"], input[type="password"] {
    width: 100%;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

select:focus, input[type="text"]:focus, input[type="password"]:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
    background: rgba(10, 10, 10, 0.8);
}

/* Buttons */
.btn-primary {
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
    background: #e0e0e0;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 14px 28px;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-outline:hover {
    border-color: #ffffff;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

/* Link Display */
.link-display {
    display: flex;
    gap: 10px;
    margin: 25px 0;
}

.link-display input {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

/* Warning Box */
.warning-box {
    background: rgba(245, 158, 11, 0.08);
    border-left: 4px solid var(--warning-color);
    padding: 18px 20px;
    margin: 24px 0;
    font-size: 0.85rem;
    text-align: left;
    border-radius: 0 12px 12px 0;
    backdrop-filter: blur(10px);
}

/* Modern Footer */
.modern-footer {
    background: #000000;
    border-top: none;
    padding: 80px 0 40px;
    margin-top: 60px;
    width: 100%;
    color: #ffffff;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
    gap: 40px;
}

.footer-brand {
    flex: 1;
}

.logo-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.footer-logo-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
}

.footer-logo-link {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.footer-logo-link:hover {
    opacity: 0.8;
}

.logo-footer h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo-footer h2 span {
    color: #888888;
    font-weight: 300;
}

.footer-tagline {
    color: #888888;
    font-size: 0.9rem;
    letter-spacing: 2px;
    font-weight: 500;
    margin-top: 10px;
}

.footer-nav {
    display: flex;
    gap: 60px;
    flex: 2;
    justify-content: flex-end;
}

.nav-group h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888888;
    margin-bottom: 25px;
    font-weight: 600;
}

.nav-group a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    margin-bottom: 12px;
    transition: color 0.2s;
    font-weight: 400;
}

.nav-group a:hover {
    color: #888888;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: none;
}

.footer-copyright p {
    font-size: 0.8rem;
    color: #666666;
}

.footer-copyright a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.footer-copyright a:hover {
    color: #888888;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-legal-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-legal-links a:hover {
    color: #888888;
}

.footer-legal-links .separator {
    color: #333333;
    font-size: 0.8rem;
}

@media (max-width: 900px) {
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    .footer-nav {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .footer-nav {
        gap: 30px;
    }
}

/* Utilities */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.error-text { color: var(--error-color); font-size: 0.8rem; margin-top: 5px; }

/* Loader */
.loader {
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--text-primary);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modals */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 48px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    border-radius: 20px;
    box-shadow: var(--shadow-lg), var(--glow);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
}

/* Modal Legal Content Styles */
#modal-body h1, #modal-body h2 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: #ffffff;
}

#modal-body h2:first-child {
    margin-top: 0;
}

#modal-body p {
    margin-bottom: 15px;
    color: #888888;
    line-height: 1.6;
}

#modal-body ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

#modal-body li {
    color: #888888;
    margin-bottom: 8px;
}

#modal-body strong {
    color: #ffffff;
}

/* Badges */
.badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #333333;
}

.badge-warning {
    background: rgba(255, 170, 0, 0.15);
    color: #ffaa00;
    border-color: rgba(255, 170, 0, 0.3);
}

/* Image Protection */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
