#setup-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 11, 20, 0.98); z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    backdrop-filter: blur(8px);
}

.setup-card { position: relative; }

.close-setup {
    position: absolute; top: 10px; right: 15px;
    background: transparent; border: none;
    color: var(--primary); font-size: 28px; cursor: pointer;
    transition: 0.3s; z-index: 10000; line-height: 1;
}
.close-setup:hover { color: var(--accent); transform: scale(1.1); }
.setup-card {
    background: var(--bg-card); padding: 30px; border-radius: 20px;
    border: 1px solid var(--primary); width: 90%; max-width: 440px;
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.1);
}
.setup-card h2 { color: var(--primary); text-align: center; margin-bottom: 25px; font-weight: 800; font-size: 22px; }
.field-group { margin-bottom: 22px; }
.field-group label { display: block; color: var(--text-secondary); margin-bottom: 10px; font-size: 14px; }
input[type="text"], select {
    width: 100%; padding: 13px; border-radius: 12px; border: 1px solid #334155;
    background: #0f172a; color: #fff; font-family: 'Cairo', sans-serif; font-size: 15px;
}
.term-tiles { display: flex; gap: 12px; margin-top: 5px; }
.tile-item { flex: 1; position: relative; }
.tile-item input { position: absolute; opacity: 0; }
.tile-btn {
    display: block; text-align: center; padding: 14px; background: #0f172a;
    border: 1px solid #334155; border-radius: 12px; cursor: pointer;
    color: var(--text-secondary); transition: 0.3s; font-weight: 700;
}
.tile-item input:checked + .tile-btn {
    background: rgba(0, 242, 255, 0.15); border-color: var(--primary); color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}
.save-btn {
    width: 100%; padding: 16px; background: var(--primary); border: none;
    color: #050b14; font-weight: 900; border-radius: 12px; cursor: pointer;
    margin-top: 15px; font-size: 16px; transition: 0.3s;
}
.save-btn:hover { background: #fff; box-shadow: 0 0 20px rgba(255,255,255,0.4); }
