:root {
    --primary-gradient: linear-gradient(135deg, #192544 0%, #2a3f5f 100%);
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --warning-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --dark-bg: #192544;
    --dark-card: #1e2948;
    --dark-text: #ffffff;
    --light-bg: #f8f9fa;
    --light-card: #ffffff;
    --light-text: #333333;
    --primary-color: #4f46e5;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --border-radius: 12px;
    --transition-speed: 0.3s;
    --primary: #667eea;
    --secondary: #764ba2;
    --accent: #f093fb;
}

:root,
.dark-mode {
    --bg-color: var(--dark-bg);
    --bg-primary: #192544;
    --bg-secondary: #2a3f5f;
    --bg-card: #1e2948;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --border-color: #2a3f5f;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.light-mode {
    --bg-color: var(--light-bg);
    --bg-primary: #f8f9fa;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-color: #dee2e6;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--primary-gradient);
    color: var(--text-primary);
    transition: all var(--transition-speed) ease;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.light-mode body,
body.light-mode {
    background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
}

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 10px 15px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.main-container {
    background: var(--bg-card);
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.3);
    max-width: 1000px;
    width: 100%;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 auto;
}

.header-section {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 60px 40px;
    text-align: center;
    animation: fadeInDown 0.8s ease-out;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid var(--border-color);
}

.header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 1s ease;
}

.header-section:hover::before {
    left: 100%;
}

.header-section h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--text-primary) 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: titleGlow 2s ease-in-out infinite alternate;
}

.dark-mode .header-section h1 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

@keyframes titleGlow {
    0%   { transform: translateY(0px) scale(1); }
    50%  { transform: translateY(-2px) scale(1.02); }
    100% { transform: translateY(0px) scale(1); }
}

.header-section p {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
    color: var(--text-secondary);
    position: relative;
    z-index: 2;
    animation: subtitleFade 3s ease-in-out infinite alternate;
}

.dark-mode .header-section p {
    color: #cccccc;
    text-shadow: 0 2px 8px rgba(79, 172, 254, 0.3);
}

@keyframes subtitleFade {
    0%   { opacity: 0.9; transform: translateY(0px); }
    50%  { opacity: 1;   transform: translateY(-1px); }
    100% { opacity: 0.9; transform: translateY(0px); }
}

.cards-container {
    background: var(--bg-card);
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.3);
    max-width: 1000px;
    width: 100%;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 auto;
}

.content-section {
    padding: 50px 40px;
}

.industry-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.dark-mode .industry-description {
    color: #cccccc;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.login-prompt {
    text-align: center;
    margin: 0;
    padding: 20px;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.dark-mode .login-prompt {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(79, 172, 254, 0.3);
}

.login-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    position: relative;
    display: inline-block;
}

.dark-mode .login-link { color: #4facfe; }

.login-link:hover {
    color: var(--info-color);
    transform: translateY(-2px) scale(1.05);
}

.dark-mode .login-link:hover { color: #00f2fe; }

.login-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.dark-mode .login-link::after { background: #4facfe; }
.login-link:hover::after { width: 100%; }

.login-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
}

.dark-mode .login-button {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
}

.login-button::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.login-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(79, 70, 229, 0.5);
}

.dark-mode .login-button:hover { box-shadow: 0 12px 35px rgba(79, 172, 254, 0.6); }
.login-button:hover::before { left: 100%; }
.login-button i { font-size: 1.2rem; transition: transform 0.3s ease; }
.login-button:hover i { transform: translateX(5px); }
.login-button span { position: relative; z-index: 2; color: #ffffff !important; }

.industry-card {
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    display: block;
    background: var(--bg-card);
    height: 100%;
    position: relative;
    overflow: hidden;
    width: 100%;
}

form { margin: 0; padding: 0; }

.industry-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.dark-mode .industry-card:hover {
    box-shadow: 0 25px 50px rgba(79, 172, 254, 0.4);
    border-color: rgba(79, 172, 254, 0.5);
}

.industry-card.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(102,126,234,0.05) 0%, rgba(118,75,162,0.05) 100%);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.dark-mode .industry-card.active {
    background: linear-gradient(135deg, rgba(79,172,254,0.1) 0%, rgba(0,242,254,0.1) 100%);
    border-color: rgba(79, 172, 254, 0.5);
    box-shadow: 0 20px 40px rgba(79, 172, 254, 0.4);
}

.industry-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg-secondary);
}

.industry-card.disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border-color);
}

.industry-icon {
    width: 80px; height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: white;
    transition: all 0.3s ease;
}

.dark-mode .industry-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
}

.industry-card:hover .industry-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.5);
}

.dark-mode .industry-card:hover .industry-icon {
    box-shadow: 0 15px 30px rgba(79, 172, 254, 0.6);
}

.industry-name {
    font-size: 1.5rem; font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.dark-mode .industry-name {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.industry-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem; font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.status-coming  { background: var(--warning-gradient); color: white; box-shadow: 0 4px 15px rgba(240,147,251,0.4); }
.status-available { background: var(--success-gradient); color: white; box-shadow: 0 4px 15px rgba(17,153,142,0.4); }

.footer-links {
    text-align: center;
    margin-top: 30px; padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.dark-mode .footer-links {
    background: rgba(25, 37, 68, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links a { color: var(--primary-color); text-decoration: none; font-weight: 600; transition: all var(--transition-speed) ease; }
.dark-mode .footer-links a { color: #4facfe; }
.footer-links a:hover { color: var(--info-color); transform: translateY(-2px) scale(1.05); }
.dark-mode .footer-links a:hover { color: #00f2fe; }

@keyframes fadeInUp   { from { opacity: 0; transform: translateY(30px);  } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }

/* Terms Modal */
.terms-modal {
    display: none;
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.terms-modal.active { display: flex; align-items: center; justify-content: center; }

.terms-content {
    background: var(--bg-card);
    border-radius: 20px;
    max-width: 800px; width: 90%;
    max-height: 85vh;
    display: flex; flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.1);
    animation: slideUp 0.4s ease;
}

@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.terms-header {
    padding: 25px 30px;
    border-bottom: 2px solid var(--border-color);
    display: flex; justify-content: space-between; align-items: center;
}

.terms-header h2 { margin: 0; font-size: 1.8rem; font-weight: 700; color: var(--text-primary); }

.dark-mode .terms-header h2 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.terms-close {
    background: none; border: none;
    font-size: 2rem; color: var(--text-secondary);
    cursor: pointer; transition: all 0.3s ease;
    padding: 0; width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}

.terms-close:hover { background: rgba(255,0,0,0.1); color: #dc3545; transform: rotate(90deg); }

.terms-body { padding: 30px; overflow-y: auto; flex: 1; }

.terms-body::-webkit-scrollbar { width: 8px; }
.terms-body::-webkit-scrollbar-track { background: var(--bg-secondary); border-radius: 10px; }
.terms-body::-webkit-scrollbar-thumb { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); border-radius: 10px; }

.terms-body h3 { color: var(--text-primary); font-size: 1.2rem; font-weight: 700; margin-top: 20px; margin-bottom: 10px; }
.dark-mode .terms-body h3 { color: #4facfe; }
.terms-body p, .terms-body ul { color: var(--text-secondary); line-height: 1.8; margin-bottom: 15px; }
.terms-body ul { padding-left: 20px; }

.terms-footer {
    padding: 20px 30px;
    border-top: 2px solid var(--border-color);
    display: flex; flex-direction: column; gap: 15px;
}

.terms-checkbox { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.terms-checkbox input[type="checkbox"] { width: 20px; height: 20px; cursor: pointer; accent-color: #4facfe; }
.terms-checkbox label { color: var(--text-primary); font-weight: 600; cursor: pointer; margin: 0; }

.terms-actions { display: flex; gap: 15px; }

.btn-accept {
    flex: 1; padding: 15px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white; border: none; border-radius: 12px;
    font-weight: 700; font-size: 1rem; cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.5; pointer-events: none;
}

.btn-accept.enabled { opacity: 1; pointer-events: all; }
.btn-accept.enabled:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(79,172,254,0.5); }

.btn-decline {
    flex: 1; padding: 15px;
    background: transparent; color: var(--text-primary);
    border: 2px solid var(--border-color); border-radius: 12px;
    font-weight: 700; font-size: 1rem; cursor: pointer;
    transition: all 0.3s ease;
}

.btn-decline:hover { background: rgba(220,53,69,0.1); border-color: #dc3545; color: #dc3545; }

/* Brand logo */
.brand-logo-wrap {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    position: relative;
    animation: logoBob 3s ease-in-out infinite;
    flex-shrink: 0; vertical-align: middle;
}

.brand-logo-wrap::before {
    content: '';
    position: absolute; inset: -3px; border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #f093fb, #4facfe, #667eea);
    background-size: 300% 300%;
    animation: logoGradientSpin 4s linear infinite;
    z-index: 0;
}

.brand-logo-wrap::after {
    content: '';
    position: absolute; inset: -6px; border-radius: 50%;
    background: radial-gradient(circle, rgba(102,126,234,0.35) 0%, transparent 70%);
    animation: logoGlow 3s ease-in-out infinite;
    z-index: 0;
}

.brand-logo { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; position: relative; z-index: 1; }

@keyframes logoBob          { 0%, 100% { transform: translateY(0); }    50% { transform: translateY(-5px); } }
@keyframes logoGradientSpin { 0% { background-position: 0% 50%; }       50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes logoGlow         { 0%, 100% { opacity: 0.5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.15); } }

@media (max-width: 768px) {
    .main-container { margin: 20px; border-radius: 20px; }
    .header-section h1 { font-size: 2rem; }
    .content-section { padding: 30px 20px; }
    .terms-content { width: 95%; max-height: 90vh; }
    .terms-actions { flex-direction: column; }
}
