/* ═══════════════════════════════════════════
   AKIYA CRM — Home / Industry Selection Page
   Claude-style elegant minimalism
═══════════════════════════════════════════ */

/* ── BODY ── */
body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Subtle ambient glow */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    right: -15%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 119, 87, 0.07) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}
body::after {
    content: '';
    position: fixed;
    bottom: -15%;
    left: -10%;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 119, 87, 0.04) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}
body.dark-mode::before {
    background: radial-gradient(circle, rgba(224, 138, 107, 0.06) 0%, transparent 65%);
}
body.dark-mode::after {
    background: radial-gradient(circle, rgba(224, 138, 107, 0.03) 0%, transparent 65%);
}

/* ── THEME TOGGLE ── */
.theme-toggle {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-solid);
    color: var(--text-muted);
    font-size: 17px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
    z-index: 1000;
}
.theme-toggle:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--bg-secondary);
    transform: rotate(15deg);
}

/* ── MAIN CONTAINER ── */
.main-container,
.cards-container {
    background: var(--card-bg);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    max-width: 960px;
    width: 100%;
    overflow: hidden;
    animation: fadeInUp 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    border: 1px solid var(--border-color);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ── HEADER SECTION ── */
.header-section {
    background: var(--card-bg);
    color: var(--text-main);
    padding: 52px 40px 44px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.header-section h1 {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.header-section p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 400;
}

/* ── CONTENT SECTION ── */
.content-section {
    padding: 44px 40px;
}

/* ── INDUSTRY CARDS ── */
.industry-card {
    border: 1.5px solid var(--border-color);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
    text-decoration: none;
    display: block;
    background: var(--card-bg);
    height: 100%;
    position: relative;
    overflow: hidden;
    width: 100%;
}

form { margin: 0; padding: 0; }

.industry-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-glow), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px;
}

.industry-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}
.industry-card:hover::before { opacity: 1; }

.dark-mode .industry-card:hover {
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
}

.industry-card.active {
    border-color: var(--primary);
    background: var(--bg-secondary);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px var(--primary-glow);
}

.industry-card.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: var(--bg-secondary);
}
.industry-card.disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border-color);
}
.industry-card.disabled::before { display: none; }

/* ── INDUSTRY ICON ── */
.industry-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    background: rgba(217, 119, 87, 0.1);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    color: var(--primary);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.dark-mode .industry-icon {
    background: rgba(224, 138, 107, 0.12);
    color: var(--primary);
}

.industry-card:hover .industry-icon {
    transform: scale(1.1) rotate(4deg);
    background: var(--primary);
    color: #fff;
}

/* ── INDUSTRY TEXT ── */
.industry-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.industry-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-top: 10px;
    position: relative;
    z-index: 1;
}

/* ── STATUS BADGES ── */
.industry-status {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 10px;
    position: relative;
    z-index: 1;
}

.status-coming {
    background: rgba(217, 119, 87, 0.12);
    color: var(--primary);
    border: 1px solid rgba(217, 119, 87, 0.25);
}
.dark-mode .status-coming {
    background: rgba(224, 138, 107, 0.15);
    color: var(--primary);
}

.status-available {
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
    border: 1px solid rgba(22, 163, 74, 0.2);
}
.dark-mode .status-available {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
}

/* ── LOGIN PROMPT ── */
.login-prompt {
    text-align: center;
    margin: 0;
    padding: 20px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.login-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
}
.login-link:hover { color: var(--primary-hover); }
.login-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--primary);
    transition: width 0.3s ease;
}
.login-link:hover::after { width: 100%; }

/* ── LOGIN BUTTON ── */
.login-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 28px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px var(--primary-glow);
    position: relative;
    overflow: hidden;
}
.login-button::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 0.5s ease;
}
.login-button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--primary-glow);
    color: #fff;
}
.login-button:hover::before { left: 100%; }
.login-button i { font-size: 1.1rem; transition: transform 0.25s ease; }
.login-button:hover i { transform: translateX(4px); }
.login-button span { position: relative; z-index: 2; color: #fff !important; }

/* ── FOOTER LINKS ── */
.footer-links {
    text-align: center;
    margin-top: 28px;
    padding: 18px 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}
.footer-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}
.footer-links a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* ── 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 3.5s ease-in-out infinite;
    flex-shrink: 0;
    vertical-align: middle;
}
.brand-logo-wrap::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(var(--primary) 0deg, transparent 120deg, var(--primary) 240deg, transparent 360deg);
    opacity: 0.4;
    animation: logoSpin 6s linear 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 logoSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ── TERMS MODAL ── */
.terms-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    backdrop-filter: blur(6px);
    animation: fadeIn 0.25s ease;
}
.terms-modal.active { display: flex; align-items: center; justify-content: center; }

.terms-content {
    background: var(--card-bg);
    border-radius: 20px;
    max-width: 760px;
    width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    animation: slideUp 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.terms-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.terms-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.terms-close {
    background: none;
    border: 1px solid var(--border-solid);
    font-size: 1.4rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}
.terms-close:hover { background: rgba(220, 38, 38, 0.08); color: #dc2626; border-color: #dc2626; transform: rotate(90deg); }

.terms-body {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
    color: var(--text-secondary);
}
.terms-body::-webkit-scrollbar { width: 6px; }
.terms-body::-webkit-scrollbar-track { background: var(--bg-secondary); border-radius: 6px; }
.terms-body::-webkit-scrollbar-thumb { background: var(--border-solid); border-radius: 6px; }
.terms-body h3 { color: var(--text-main); font-size: 1.05rem; font-weight: 600; margin-top: 20px; margin-bottom: 8px; }
.terms-body p, .terms-body ul { line-height: 1.8; margin-bottom: 14px; }
.terms-body ul { padding-left: 20px; }

.terms-footer {
    padding: 20px 28px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.terms-checkbox { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.terms-checkbox input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; accent-color: var(--primary); }
.terms-checkbox label { color: var(--text-main); font-weight: 500; cursor: pointer; margin: 0; font-size: 0.9rem; }

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

.btn-accept {
    flex: 1;
    padding: 13px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
    opacity: 0.45;
    pointer-events: none;
}
.btn-accept.enabled { opacity: 1; pointer-events: all; }
.btn-accept.enabled:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--primary-glow);
}

.btn-decline {
    flex: 1;
    padding: 13px;
    background: transparent;
    color: var(--text-secondary);
    border: 1.5px solid var(--border-solid);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
}
.btn-decline:hover { background: rgba(220, 38, 38, 0.06); border-color: #dc2626; color: #dc2626; }

/* ── ANIMATIONS ── */
@keyframes fadeInUp   { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn     { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp    { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: translateY(0); } }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .main-container, .cards-container { border-radius: 16px; }
    .header-section { padding: 36px 24px 28px; }
    .header-section h1 { font-size: 1.9rem; }
    .content-section { padding: 28px 20px; }
    .terms-content { width: 95%; max-height: 92vh; }
    .terms-actions { flex-direction: column; }
    .theme-toggle { top: 16px; right: 16px; }
}
